Function at 0x604590
Capabilities:
Contain obfuscated stackstrings
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xd0
push ebx
push ebp
mov ebx, ecx
cmp byte [ebx + 0x3ec], 0
push esi
push edi
mov dword [esp + 0x40], ebx
jne 0x604adc
cmp dword [ebx + 0x3e8], 0
je 0x604adc
mov eax, dword [ebx + 0x70]
test eax, eax
je 0x604adc
lea ecx, [eax + 0x54]
call fcn.00543db0
test eax, eax
je 0x604adc
mov eax, dword [ebx + 0x3f0]
test eax, eax
je 0x604adc
lea ecx, [eax + 0x54]
call fcn.00543db0
test eax, eax
je 0x604adc
mov eax, dword [ebx + 0x3f4]
test eax, eax
je 0x604adc
lea ecx, [eax + 0x54]
call fcn.00543db0
test eax, eax
je 0x604adc
mov eax, dword [ebx + 0x3f8]
test eax, eax
je 0x604adc
lea ecx, [eax + 0x54]
call fcn.00543db0
test eax, eax
je 0x604adc
call dword [0x794288]
mov dword [esp + 0x44], eax
mov dword [esp + 0x10], 0xc8
mov dword [esp + 0x14], 0
call fcn.0067b970
mov ecx, dword [eax + 4]
mov esi, dword [ebx + 0x3e8]
mov dword [esp + 0x48], eax
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
sub esi, 1
lea ecx, [edx + eax + 0xa]
mov dword [esp + 0x30], ecx
js 0x604adc
jmp 0x604684
mov ebx, dword [esp + 0x40]
cmp esi, dword [ebx + 0x3e8]
jae 0x604adc
lea edi, [ebx + 0x3d8]
push esi
mov ecx, edi
call fcn.00602980
cmp dword [eax + 0x2c], 0
jne 0x6046ac
mov ebp, dword [ebx + 0x3f8]
jmp 0x6046c8
push esi
mov ecx, edi
call fcn.00602980
cmp dword [eax + 0x2c], 1
jne 0x6046c2
mov ebp, dword [ebx + 0x3f0]
jmp 0x6046c8
mov ebp, dword [ebx + 0x3f4]
push esi
mov ecx, edi
call fcn.00602980
cmp dword [eax + 0x18], 0x10
jb 0x6046db
mov ebx, dword [eax + 4]
jmp 0x6046de
lea ebx, [eax + 4]
add ebp, 0x54
push ebx
mov ecx, ebp
call fcn.00439b60
mov ecx, eax
call fcn.0053a2e0
push esi
mov ecx, edi
mov dword [esp + 0x3c], eax
call fcn.00602980
mov edx, dword [esp + 0x44]
add edx, 0xffffffd8
cmp dword [eax + 0x20], edx
jae 0x604738
push esi
mov ecx, edi
call fcn.00602980
mov ecx, dword [esp + 0x44]
mov dword [eax + 0x20], ecx
push esi
mov ecx, edi
call fcn.00602980
mov eax, dword [eax + 0x1c]
sub eax, 1
push esi
mov ecx, edi
mov dword [esp + 0x50], eax
call fcn.00602980
mov edx, dword [esp + 0x4c]
mov dword [eax + 0x1c], edx
push esi
mov ecx, edi
call fcn.00602980
cmp dword [eax + 0x1c], 0
ja 0x604752
mov ecx, edi
call fcn.00603be0
jmp 0x604ad3
mov ecx, ebp
call fcn.00439b60
mov ecx, 0xfffffff6
sub ecx, dword [eax + 0x10]
add dword [esp + 0x30], ecx
js 0x604adc
push esi
mov ecx, edi
call fcn.00602980
cmp dword [eax + 0x28], 1
jne 0x604788
mov edx, dword [esp + 0x30]
sub dword [esp + 0x10], 0x23
mov dword [esp + 0x14], edx
jmp 0x6047a4
mov ecx, dword [esp + 0x48]
mov edx, dword [ecx]
mov eax, dword [esp + 0x38]
shr eax, 1
sar edx, 1
sub edx, eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
push esi
mov ecx, edi
call fcn.00602980
movzx ecx, byte [eax + 0x1c]
mov byte [esp + 0x1c], cl
push esi
mov ecx, edi
call fcn.00602980
movzx edx, byte [eax + 0x26]
push esi
mov ecx, edi
mov byte [esp + 0x1c], dl
call fcn.00602980
movzx eax, byte [eax + 0x25]
push esi
mov ecx, edi
mov byte [esp + 0x24], al
call fcn.00602980
movzx ecx, byte [eax + 0x24]
movzx edx, byte [esp + 0x20]
movzx eax, byte [esp + 0x18]
mov byte [esp + 0x2c], cl
movzx ecx, byte [esp + 0x1c]
mov byte [esp + 0x2f], cl
mov ecx, ebp
mov byte [esp + 0x2d], dl
mov byte [esp + 0x2e], al
call fcn.00439b60
push ebx
mov ecx, ebp
call fcn.00439b60
mov ecx, eax
call fcn.0053a2e0
mov edx, dword [esp + 0x48]
mov eax, dword [edx]
mov ecx, dword [esp + 0x14]
sar eax, 1
sub eax, 0x64
add ecx, 0xfffffffb
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], 0xc8
mov dword [esp + 0x7c], 0x22
call fcn.00534760
push esi
mov ecx, edi
call fcn.00602980
fild dword [eax + 0x1c]
mov edx, dword [eax + 0x1c]
test edx, edx
jge 0x60485c
fadd dword [0x7bb540]
fdiv qword [0x798938]
lea eax, [esp + 0x80]
push eax
fstp dword [esp + 0x3c]
fld1
fst dword [esp + 0x84]
fst dword [esp + 0x88]
fstp dword [esp + 0x8c]
fld dword [esp + 0x3c]
fstp dword [esp + 0x90]
call fcn.00534680
mov ecx, dword [esp + 0x44]
add esp, 4
add ecx, 0x2d4
call fcn.00435130
test eax, eax
je 0x6048d8
push esi
mov ecx, edi
call fcn.00602980
cmp byte [eax + 0x30], 0
je 0x6048d8
push 0
lea ecx, [esp + 0x74]
push ecx
mov ecx, dword [esp + 0x48]
add ecx, 0x2d4
call fcn.00435130
push eax
call fcn.00534ac0
add esp, 0xc
push esi
mov ecx, edi
mov byte [esp + 0x40], 0x32
mov byte [esp + 0x41], 0x32
mov byte [esp + 0x42], 0x32
call fcn.00602980
movzx edx, byte [eax + 0x1c]
lea eax, [esp + 0xc0]
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x43], dl
call fcn.004136b0
lea ecx, [esp + 0xc0]
push ecx
call fcn.00534680
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
add esp, 4
push 9
push 0
push ebx
lea ecx, [esp + 0x6c]
add edx, 0xffffffff
add eax, 0xffffffff
push ecx
mov ecx, ebp
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], eax
call fcn.00543db0
push eax
call fcn.00537cb0
add esp, 0x14
push esi
mov ecx, edi
mov byte [esp + 0x38], 0x32
mov byte [esp + 0x39], 0x32
mov byte [esp + 0x3a], 0x32
call fcn.00602980
movzx edx, byte [eax + 0x1c]
lea eax, [esp + 0x90]
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x3b], dl
call fcn.004136b0
lea ecx, [esp + 0x90]
push ecx
call fcn.00534680
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
add esp, 4
push 9
push 0
push ebx
lea ecx, [esp + 0x5c]
add edx, 0xffffffff
add eax, 1
push ecx
mov ecx, ebp
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], eax
call fcn.00543db0
push eax
call fcn.00537cb0
add esp, 0x14
push esi
mov ecx, edi
mov byte [esp + 0x28], 0x32
mov byte [esp + 0x29], 0x32
mov byte [esp + 0x2a], 0x32
call fcn.00602980
movzx edx, byte [eax + 0x1c]
lea eax, [esp + 0xa0]
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x2b], dl
call fcn.004136b0
lea ecx, [esp + 0xa0]
push ecx
call fcn.00534680
mov edx, dword [esp + 0x14]
add esp, 4
mov eax, dword [esp + 0x14]
push 9
push 0
push ebx
lea ecx, [esp + 0x64]
add edx, 1
add eax, 0xffffffff
push ecx
mov ecx, ebp
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], eax
call fcn.00543db0
push eax
call fcn.00537cb0
add esp, 0x14
push esi
mov ecx, edi
mov byte [esp + 0x2c], 0x32
mov byte [esp + 0x2d], 0x32
mov byte [esp + 0x2e], 0x32
call fcn.00602980
movzx edx, byte [eax + 0x1c]
lea eax, [esp + 0xb0]
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2f], dl
call fcn.004136b0
lea ecx, [esp + 0xb0]
push ecx
call fcn.00534680
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
add esp, 4
push 9
push 0
push ebx
lea ecx, [esp + 0x74]
add edx, 1
add eax, 1
push ecx
mov ecx, ebp
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], eax
call fcn.00543db0
push eax
call fcn.00537cb0
add esp, 0x14
lea edx, [esp + 0xd0]
push edx
lea ecx, [esp + 0x30]
call fcn.004136b0
lea eax, [esp + 0xd0]
push eax
call fcn.00534680
add esp, 4
push 9
push 0
push ebx
lea ecx, [esp + 0x1c]
push ecx
mov ecx, ebp
call fcn.00543db0
push eax
call fcn.00537cb0
add esp, 0x14
sub esi, 1
jns 0x604680
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret