Function at 0x48bfb8
Capabilities:
Packed with generic packer

Disassembly:
pushal
popal
push ebp
push esp
pop ebp
sub esp, 0x2e4
mov eax, dword [0x4e11d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x2dc], ebx
call fcn.0040442b
add eax, 0x278
mov dword [ebp - 0x2d8], eax
lea eax, [ebp - 0x2c4]
push eax
push 0x55
lea eax, [ebp - 0x2b8]
push eax
push 0x83
lea eax, [ebp - 0x10c]
push eax
push esi
call fcn.0048b165
add esp, 0x18
or eax, eax
je 0x48c2d7
lea esi, [ebx + 2]
shl esi, 4
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x2c8], esi
mov edx, dword [esi + edi]
mov ecx, edx
mov si, word [eax]
and dword [ebp - 0x2bc], 0
cmp si, word [ecx]
mov esi, dword [ebp - 0x2c8]
jne 0x48c07d
cmp word [eax], 0
je 0x48c075
mov si, word [eax + 2]
cmp si, word [ecx + 2]
mov word [ebp - 0x2be], si
mov esi, dword [ebp - 0x2c8]
jne 0x48c07d
add eax, 4
add ecx, 4
cmp word [ebp - 0x2be], 0
jne 0x48c033
mov eax, dword [ebp - 0x2bc]
jmp 0x48c082
sbb eax, eax
or eax, 1
or eax, eax
jne 0x48c08d
mov eax, edx
jmp 0x48c2d9
lea ecx, [ebp - 0x10c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x2bc]
jne 0x48c096
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
mov dword [ebp - 0x2c0], eax
lea eax, [eax*2 + 4]
push eax
call fcn.004040f2
mov dword [ebp - 0x2d0], eax
pop ecx
or eax, eax
je 0x48c2d7
mov ecx, dword [esi + edi]
add eax, 4
mov dword [ebp - 0x2cc], ecx
mov ecx, dword [edi + ebx*4 + 0xa0]
mov dword [ebp - 0x2e0], ecx
mov ecx, dword [edi + 8]
mov dword [ebp - 0x2e4], ecx
lea ecx, [ebp - 0x10c]
push ecx
push dword [ebp - 0x2c0]
mov dword [ebp - 0x2d4], eax
push eax
call fcn.004039c2
add esp, 0xc
or eax, eax
jne 0x48c357
cmp word [ebp - 0x10c], 0x43
mov eax, dword [ebp - 0x2d4]
mov dword [esi + edi], eax
jne 0x48c13b
cmp word [ebp - 0x10a], 0
jne 0x48c13b
mov edx, dword [ebp - 0x2bc]
mov eax, edx
jmp 0x48c14e
lea eax, [ebp - 0x2b8]
push eax
call fcn.004038e1
mov edx, dword [ebp - 0x2bc]
pop ecx
mov dword [edi + ebx*4 + 0xa0], eax
cmp ebx, 2
jne 0x48c261
mov esi, dword [ebp - 0x2d8]
mov eax, dword [ebp - 0x2c4]
mov dword [edi + 8], eax
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
mov dword [ebp - 0x2c0], eax
mov dword [ebp - 0x2c4], ecx
mov eax, dword [edi + 8]
cmp eax, dword [esi + edx*8]
je 0x48c236
mov eax, dword [esi + edx*8]
mov ebx, dword [ebp - 0x2c0]
mov ecx, dword [esi + edx*8 + 4]
mov dword [esi + edx*8], ebx
mov ebx, dword [ebp - 0x2c4]
mov dword [esi + edx*8 + 4], ebx
inc edx
mov ebx, dword [ebp - 0x2dc]
mov dword [ebp - 0x2c0], eax
mov dword [ebp - 0x2c4], ecx
cmp edx, 5
jl 0x48c17f
jne 0x48c259
push 1
push dword [edi + 8]
lea eax, [ebp - 0x20c]
push eax
push 0x7f
push 0x4c3008
push 1
push dword [ebp - 0x2bc]
call fcn.004012ad
add esp, 0x1c
test eax, eax
je 0x48c226
mov eax, dword [ebp - 0x2bc]
mov ecx, 0x1ff
and word [ebp + eax*2 - 0x20c], cx
inc eax
cmp eax, 0x7f
jb 0x48c1f0
push 0xfe
push dword [0x4e13a0]
lea eax, [ebp - 0x20c]
push eax
call fcn.004020cc
sub ecx, ecx
add esp, 0xc
test eax, eax
sete cl
jmp 0x48c22c
mov ecx, dword [ebp - 0x2bc]
mov dword [esi + 4], ecx
mov eax, dword [edi + 8]
mov dword [esi], eax
jmp 0x48c259
or edx, edx
je 0x48c259
mov eax, dword [esi + edx*8]
mov ecx, dword [esi + edx*8 + 4]
mov dword [esi], eax
mov eax, dword [ebp - 0x2c0]
mov dword [esi + 4], ecx
mov dword [esi + edx*8], eax
mov eax, dword [ebp - 0x2c4]
mov dword [esi + edx*8 + 4], eax
mov eax, dword [esi + 4]
mov dword [edi + 0x18], eax
jmp 0x48c27f
cmp ebx, 1
jne 0x48c271
mov eax, dword [ebp - 0x2c4]
mov dword [edi + 0x10], eax
jmp 0x48c27f
cmp ebx, 5
jne 0x48c27f
mov eax, dword [ebp - 0x2c4]
mov dword [edi + 0x14], eax
imul eax, ebx, 0xc
push edi
mov esi, dword [eax + 0x4c30a8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop ecx
mov ecx, dword [ebp - 0x2cc]
test eax, eax
je 0x48c2e8
mov eax, dword [ebp - 0x2c8]
mov dword [eax + edi], ecx
push dword [edi + ebx*4 + 0xa0]
call fcn.00406456
mov ecx, dword [ebp - 0x2d0]
mov eax, dword [ebp - 0x2e0]
push ecx
mov dword [edi + ebx*4 + 0xa0], eax
call fcn.00406456
mov eax, dword [ebp - 0x2e4]
pop ecx
pop ecx
mov dword [edi + 8], eax
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403102
leave
ret
cmp ecx, 0x4e14a0
je 0x48c33a
mov esi, ebx
or ecx, 0xffffffff
add esi, esi
mov eax, dword [edi + esi*8 + 0x28]
lock xadd dword [eax], ecx
jne 0x48c33a
push dword [edi + esi*8 + 0x28]
call fcn.00406456
push dword [edi + esi*8 + 0x24]
call fcn.00406456
push dword [edi + ebx*4 + 0xa0]
call fcn.00406456
mov eax, dword [ebp - 0x2c8]
add esp, 0xc
mov ecx, dword [ebp - 0x2bc]
mov dword [eax + edi], ecx
mov dword [edi + ebx*4 + 0xa0], ecx
jmp 0x48c340
mov eax, dword [ebp - 0x2c8]
mov ecx, dword [ebp - 0x2d0]
add ebx, ebx
mov dword [ecx], 1
mov eax, dword [eax + edi]
mov dword [edi + ebx*8 + 0x28], ecx
jmp 0x48c2d9
mov eax, dword [ebp - 0x2bc]
push eax
push eax
push eax
push eax
push eax
call fcn.004036cf
int3