Function at 0x4055d6
Capabilities:
Packed with generic packer

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x4261d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, ecx
mov dword [ebp - 0x21c], edx
xor cl, cl
mov dword [ebp - 0x218], eax
push edi
or edi, 0xffffffff
mov byte [ebp - 0x211], cl
xor ebx, ebx
mov eax, dword [eax + 0x38]
movzx esi, word [eax + ebx*2]
cmp esi, 0x22
je 0x4156ca
test si, si
je 0x40566e
test cl, cl
jne 0x405635
push esi
push 0x405748
call dword [0x44209c]
add esp, 8
test eax, eax
jne 0x40566e
cmp edi, 0xffffffff
jne 0x405651
push esi
push 0x405740
call dword [0x44209c]
add esp, 8
test eax, eax
jne 0x4068dd
mov cl, byte [ebp - 0x211]
mov eax, dword [ebp - 0x218]
mov word [ebp + ebx*2 - 0x210], si
inc ebx
cmp ebx, 0x103
jb 0x405609
test ebx, ebx
je 0x4198bb
lea eax, [ebx + ebx]
cmp eax, 0x208
jae 0x4156d8
xor ecx, ecx
mov word [ebp + eax - 0x210], cx
cmp edi, 0xffffffff
jne 0x4068ac
xor edi, edi
mov esi, 0x401630
mov eax, dword [esi]
test eax, eax
je 0x4056bd
push eax
lea eax, [ebp - 0x210]
push eax
call dword [0x442094]
add esp, 8
test eax, eax
je 0x4057b5
add esi, 0x18
inc edi
cmp esi, 0x401a20
jle 0x40569e
mov ecx, dword [ebp - 0x21c]
or edi, 0xffffffff
mov dword [0x42602c], 0xffffffff
push ecx
lea edx, [ebp - 0x210]
mov ecx, 0x2d
call fcn.00405bc7
cmp eax, 0x2d
je 0x4198d5
mov edx, dword [ebp - 0x218]
xor cl, cl
mov byte [ebp - 0x211], cl
cmp edi, 0xffffffff
je 0x4067e9
mov ecx, dword [edx + 0x38]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405713
sub ecx, edx
sar ecx, 1
cmp ebx, ecx
jne 0x415066
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401200
mov esp, ebp
pop ebp
ret
test byte [esi + 8], 4
jne 0x4198c3
mov ecx, dword [ebp - 0x21c]
lea eax, [edi + edi*2]
mov ax, word [eax*8 + 0x401638]
mov dword [0x42602c], edi
mov word [ecx], ax
cmp edi, 0xffffffff
je 0x4056dc
mov edx, dword [ebp - 0x218]
cmp edi, 0x14
jne 0x4056fc
mov dword [edx + 0x40], 1
jmp 0x4056fc
xor ebx, ebx
mov eax, dword [edx + 0x38]
movzx esi, word [eax + ebx*2]
test si, si
je 0x40570d
cmp esi, 0x22
je 0x4156dd
test cl, cl
jne 0x406843
push esi
call dword [0x442098]
add esp, 4
test eax, eax
jne 0x4169ff
mov edx, esi
mov ecx, 0x402200
call fcn.004024b1
test eax, eax
jne 0x4169ff
mov edx, dword [ebp - 0x218]
cmp esi, 0x2f
je 0x40570d
mov cl, byte [ebp - 0x211]
inc ebx
jmp 0x4067eb
lea eax, [ebp - 0x210]
push eax
call dword [0x4421e4]
cmp eax, 0xffffffff
jne 0x4068f1
mov ebx, edi
add edi, edi
cmp edi, 0x208
jae 0x4156d8
xor eax, eax
mov word [ebp + edi - 0x210], ax
jmp 0x405697
cmp byte [0x426004], 0
je 0x40566e
mov edi, ebx
jmp 0x405651
test al, 0x10
je 0x405697
jmp 0x4068be
mov bh, byte [eax + 0xa4]
mov byte [eax + 0xa3], bh
mov byte [eax + 0xa4], bl
mov ecx, dword [esi]
movzx ebx, word [eax + 0xa5]
mov dword [ecx + 0x20b], ebx
mov ebx, dword [esi]
movzx eax, word [eax + 0xa3]
mov dword [ebx + 0x20f], eax
jmp 0x415428
mov eax, edi
call 0x458a8c
popal
leave
ret
add al, ch
test byte [esp + eax + 0x24848b00], ch
xchg dword [eax], eax
add byte [eax], al
mov esi, 8
or byte [eax], al
add byte [eax], al
cdq
idiv esi
mov eax, edx
mov edx, eax
xor edx, 8
jge 0x4156ef
test eax, eax
je 0x4156ef
add eax, 8
call 0x4600e0
call 0x460548
mov eax, dword [esp + 0x8b]
call 0x4600e0
call 0x4603f0
call 0x46024c
mov dword [esp + 0x97], eax
mov eax, dword [esp + 0x87]
call 0x4600e0
mov eax, 8
call 0x4600e0
call 0x46046c
call 0x460354
call 0x460270
mov edi, eax
mov eax, dword [esp + 0x87]
call 0x4600e0
mov eax, 8
call 0x4600e0
call 0x46046c
mov eax, edi
call 0x4600e0
call 0x4604a4
cmp eax, 0
jge 0x41576a
inc edi
mov eax, dword [esp + 0x97]
call 0x4600c0
mov eax, ebx
call 0x4600e0
call 0x46046c
mov eax, edi
call 0x4600e0
call 0x4603b8
call 0x460270
mov dword [esp + 0x1f], eax
jmp 0x415ac5
add bl, ch
das
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
call 0x464304
mov eax, 0xffffffff
call 0x463368
call 0x463df0
mov eax, edx
mov bl, 1
call fcn.0041a850
mov eax, dword [edx + 4]
mov bl, 0
call fcn.00420d78
nop
add byte [edi], cl
mov edi, 0x408ee8d9
add al, 0