Function at 0x406434
Capabilities:
Packed with generic packer

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4064d0
push 0x41c8e0
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x4261d4]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0x34], ebx
mov edi, ecx
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x20], 0
xor esi, esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], esi
mov ecx, 0x4000
call fcn.00401e20
mov dword [ebp - 0x38], eax
test eax, eax
je 0x4195d0
mov esi, ebx
mov dword [ebp - 0x1c], esi
mov di, word [ebp + 0xc]
mov cl, byte [0x426004]
movzx eax, word [esi]
test ax, ax
je 0x4064ec
cmp ax, di
je 0x4064ec
test cl, cl
je 0x4064c4
cmp eax, 0x3a
je 0x407da4
add esi, 2
mov dword [ebp - 0x1c], esi
jmp 0x4064aa
cmp word [esi], 0
je 0x408c6d
cmp esi, ebx
je 0x408c6d
sub esi, ebx
sar esi, 1
inc esi
lea ecx, [esi + esi]
call fcn.00401e20
mov ecx, eax
mov dword [ebp - 0x20], ecx
test ecx, ecx
je 0x41d7fd
lea eax, [esi - 1]
test esi, esi
je 0x406543
cmp esi, 0x7fffffff
ja 0x41d815
cmp eax, 0x7ffffffe
ja 0x416958
push eax
push ebx
push ecx
mov edx, esi
call fcn.00406643
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
mov si, word [eax]
add eax, 2
mov dword [ebp - 0x1c], eax
call fcn.00401e96
mov ebx, eax
mov dword [ebp - 0x28], ebx
cmp si, 0x3a
je 0x407db3
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x34]
sar ecx, 1
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov esi, ebx
mov dword [ebp - 0x24], esi
mov ecx, dword [ebp - 0x20]
jmp 0x406609
add ecx, 2
mov dword [ebp - 0x1c], ecx
movzx eax, word [ecx]
test ax, ax
je 0x406590
cmp ax, di
jne 0x40657d
cmp word [ecx], 0
je 0x408c6d
mov eax, ecx
add ecx, 2
mov dword [ebp - 0x1c], ecx
sub eax, edx
sar eax, 1
mov dword [ebp - 0x30], eax
sub ecx, dword [ebp - 0x34]
sar ecx, 1
mov eax, dword [ebp + 8]
mov dword [eax], ecx
cmp word [ebx], 0
je 0x406601
push ebx
mov edx, 0x2000
mov edi, dword [ebp - 0x38]
mov ecx, edi
call fcn.00401da3
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x4c], ebx
push esi
push dword [ebp - 0x54]
push edi
call dword [0x4420cc]
add esp, 0xc
test eax, eax
je 0x40dede
mov ax, word [edi]
mov word [ebx], ax
add ebx, 2
mov dword [ebp - 0x4c], ebx
add edi, 2
mov dword [ebp - 0x50], edi
cmp word [ebx - 2], 0
jne 0x4065cf
mov ebx, dword [ebp - 0x28]
mov esi, ebx
mov dword [ebp - 0x24], esi
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 4], 0xfffffffe
call fcn.00406630
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp word [esi + 2], di
je 0x4064c4
jmp 0x4064ec
cmp byte [0x426004], 0
je 0x406563
test ebx, ebx
je 0x406563
mov ecx, dword [ebp - 0x1c]
movzx eax, word [ecx]
cmp eax, 0x7e
je 0x40dd03
cmp eax, 0x2a
je 0x41d838
mov dword [ebp - 0x40], 0
mov eax, ecx
mov dword [ebp - 0x54], eax
jmp 0x408a5a
movzx edx, word [ecx]
test dx, dx
je 0x408a6f
cmp edx, 0x3d
je 0x408a6f
add ecx, 2
mov dword [ebp - 0x1c], ecx
jmp 0x408a5a
cmp word [ecx], 0
je 0x408c6d
mov esi, ecx
sub esi, eax
sar esi, 1
mov dword [ebp - 0x48], esi
je 0x41d84a
add ecx, 2
mov dword [ebp - 0x1c], ecx
mov edx, ecx
mov dword [ebp - 0x44], edx
mov edi, edi
jmp 0x406583
mov esi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp + 8]
mov dword [eax], 0
jmp 0x406609
inc eax
add byte [edi + edi*8 + 0x32], ah
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
lea eax, [eax + esi*4 + 0x14]
lea ecx, [ebp - 0x10]
mov edx, ebx
call fcn.0040d878
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40dd45
mov eax, dword [ebp - 4]
mov edx, ebx
call fcn.0040da5c
mov ebx, eax
mov eax, dword [ebp - 4]
lea eax, [eax + esi*4 + 0x14]
mov ecx, ebx
mov edx, dword [ebp - 0x10]
call fcn.0040d7f0
mov dword [ebp - 0x14], ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dd6c
mov eax, dword [ebp - 0xc]
lea eax, [eax + eax*2]
mov edx, dword [ebp - 4]
lea eax, [edx + eax*4 + 0x14]
call fcn.0040d99c
ret
invalid
adc eax, 0xc0c0c15
add byte [eax], al
add byte [eax], 0
add byte [eax + 0x4d0bffff], al
popal
or ecx, dword [ebp + 0x61]
js 0x41d84e
popal
jo 0x41d86f
arpl word [ecx + 0x74], bp
jns 0x41d813
add byte [eax + ebx*8 + 0x41], ch
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax + 0x41d8], dl
add byte [eax], al
add byte [eax + ebx*8 + 0x41], dh
fadd dword [ecx]
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
nop
fadd dword [ecx]
add byte [eax], al
add byte [eax], al
je 0x41d806
inc ecx
add byte [eax], al
add byte [eax], al
add byte [edx - 0x28], bh
inc ecx
add byte [eax + eax], bl
sbb al, 0
add byte [eax], al
in al, 0x97
inc ecx
add byte [eax - 0x67ffbf96], dl
push 0x40
add byte [eax], dh
inc edx
inc edx
add ah, ch
insb byte es:[edi], dx
inc eax
add byte [ebp*2 + 0x6d100040], cl
inc eax