Function at 0x405900
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43265b
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x43a4a0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 0x94], eax
mov dword [ebp - 4], 0
xor edi, edi
sub eax, eax
sub esi, esi
mov dword [ebp - 0x90], ecx
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0xac], edi
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xa4], esi
mov byte [ebp - 4], 1
sub ecx, ecx
mov dword [ebp - 0x8c], ecx
cmp ecx, dword [ebp + 0xc]
jge 0x405a87
mov edx, dword [ebp - 0x94]
mov bl, byte [edx + ecx]
xor bl, 0xcc
lea ecx, [ebp - 0x85]
mov byte [ebp - 0x85], bl
cmp ecx, eax
jae 0x405a17
mov edx, ecx
cmp edi, edx
ja 0x405a17
push ecx
pop ebx
sub ebx, edi
cmp eax, esi
jne 0x4059fb
mov ecx, eax
sub ecx, edi
cmp ecx, 0xfffffffe
jbe 0x4059bb
push 0x436638
call fcn.0041f761
mov edx, esi
inc ecx
sub edx, edi
cmp ecx, edx
jbe 0x4059fb
push edx
pop eax
shr edx, 1
or esi, 0xffffffff
sub esi, edx
cmp esi, eax
jae 0x4059d5
xor eax, eax
jmp 0x4059d7
add eax, edx
cmp eax, ecx
jae 0x4059dd
mov eax, ecx
push eax
lea esi, [ebp - 0xac]
call fcn.00405d50
mov esi, dword [ebp - 0xa4]
mov eax, dword [ebp - 0xa8]
mov edi, dword [ebp - 0xac]
test eax, eax
je 0x405a74
mov cl, byte [edi + ebx]
mov byte [eax], cl
mov ecx, dword [ebp - 0x8c]
inc eax
mov dword [ebp - 0xa8], eax
inc ecx
jmp 0x40596f
cmp eax, esi
jne 0x405a6e
push eax
pop ecx
sub ecx, edi
cmp ecx, 0xfffffffe
jbe 0x405a2e
push 0x436638
call fcn.0041f761
push esi
pop edx
inc ecx
sub edx, edi
cmp ecx, edx
jbe 0x405a6e
mov eax, edx
shr edx, 1
or esi, 0xffffffff
sub esi, edx
cmp esi, eax
jae 0x405a48
sub eax, eax
jmp 0x405a4a
add eax, edx
cmp eax, ecx
jae 0x405a50
mov eax, ecx
push eax
lea esi, [ebp - 0xac]
call fcn.00405d50
mov esi, dword [ebp - 0xa4]
mov eax, dword [ebp - 0xa8]
mov edi, dword [ebp - 0xac]
test eax, eax
je 0x405a74
mov byte [eax], bl
mov ecx, dword [ebp - 0x8c]
inc eax
mov dword [ebp - 0xa8], eax
inc ecx
jmp 0x40596f
push 0x6c
lea edx, [ebp - 0x80]
push 0
push edx
mov dword [ebp - 0x84], 0
call fcn.004229a0
xor ebx, ebx
pushal
popal
push 1
pop eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
add esp, 0xc
push edi
pop eax
lea esi, [ebp - 0x84]
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
call fcn.004078a0
cmp eax, ebx
jne 0x405c16
mov eax, dword [edi + 9]
mov esi, dword [edi + 5]
mov dword [ebp - 0x98], esi
mov dword [ebp - 0x94], eax
cmp eax, ebx
jl 0x405bec
jg 0x405af6
cmp esi, ebx
jbe 0x405bec
mov ecx, dword [ebp - 0x90]
mov eax, dword [ecx + 4]
mov byte [ebp - 0x85], bl
mov ebx, dword [ecx]
cmp ebx, eax
je 0x405b2d
push eax
pop esi
sub esi, eax
push esi
push eax
push ebx
call fcn.00421040
add esp, 0xc
add esi, ebx
mov ebx, dword [ebp - 0x90]
mov dword [ebx + 4], esi
mov esi, dword [ebp - 0x98]
jmp 0x405b2f
push ecx
pop ebx
mov eax, dword [ebx]
lea ecx, [ebp - 0x85]
push ecx
push eax
push ebx
push esi
pop eax
call fcn.00405df0
mov ecx, dword [ebx]
or ecx, ecx
je 0x405bea
mov eax, dword [ebx + 4]
sub eax, ecx
xor edx, edx
cmp eax, esi
jne 0x405bea
cmp edx, dword [ebp - 0x94]
jne 0x405bea
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x90], eax
add edx, 0xfffffff3
mov dword [ebp - 0x94], edx
lea eax, [ebp - 0x8c]
push eax
lea edx, [ebp - 0x94]
push edx
lea eax, [edi + 0xd]
push eax
lea edx, [ebp - 0x90]
push edx
push ecx
lea eax, [ebp - 0x84]
mov dword [ebp - 0x8c], 0
call fcn.004074c0
add esp, 0x14
or eax, eax
jne 0x405bc3
pushfd
xor eax, eax
inc eax
popfd
cmp dword [ebp - 0x8c], eax
jne 0x405bc3
mov dword [ebp - 0x9c], eax
jmp 0x405bea
mov ecx, dword [ebx]
mov eax, dword [ebx + 4]
mov dword [ebp - 0x94], ecx
cmp ecx, eax
je 0x405bea
push eax
pop esi
sub esi, eax
push esi
push eax
push ecx
call fcn.00421040
add esp, 0xc
add esi, dword [ebp - 0x94]
mov dword [ebx + 4], esi
xor ebx, ebx
mov ecx, dword [ebp - 0x74]
push ecx
push 0x467798
call dword [0x46779c]
mov edx, dword [ebp - 0x70]
add esp, 8
push edx
push 0x467798
mov dword [ebp - 0x74], ebx
call dword [0x46779c]
add esp, 8
mov dword [ebp - 0x70], ebx
cmp edi, ebx
je 0x405c23
push edi
call fcn.0042095b
add esp, 4
mov eax, dword [ebp - 0x9c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00420966
mov esp, ebp
pop ebp
ret