Function at 0x5f2ef0
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x7c
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x10]
mov edx, dword [esi + 8]
sub eax, edx
cmp eax, 0x14
jl 0x5f37b8
call fcn.0047e250
test eax, eax
jne 0x5f2f62
mov eax, dword [0x8267b0]
test eax, eax
je 0x5f2f62
mov eax, dword [0x828b04]
test eax, eax
jne 0x5f2f62
push 0x6c10a4
add esi, 0x36
sub esp, 0x10
mov edx, dword [esi]
mov ecx, esp
mov eax, dword [esi + 4]
mov dword [ecx], edx
mov edx, dword [esi + 8]
mov dword [ecx + 4], eax
mov eax, dword [esi + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, dword [esp + 0xa4]
push ecx
call fcn.0047fd50
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret 4
mov ecx, dword [esi + 0x18c]
xor eax, eax
cmp ecx, eax
je 0x5f37b8
mov ebx, dword [esi + 0x32]
mov ebp, dword [0x6a7ff0]
cmp ebx, 0x12d
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x20], ebp
jne 0x5f2f98
mov edx, dword [esi + 0x3e]
mov dword [esp + 0x20], edx
mov ebp, edx
lea ecx, [ebp - 6]
mov eax, 0x55555556
imul ecx
mov eax, edx
add ecx, ecx
shr eax, 0x1f
add edx, eax
mov eax, 0x55555556
mov dword [esp + 0x1c], edx
imul ecx
mov ecx, edx
mov edi, 2
shr ecx, 0x1f
cmp ebx, 0x12d
lea edx, [edx + ecx + 1]
mov dword [esp + 0x18], edx
jne 0x5f32a8
mov eax, dword [esi + 0xca]
test eax, eax
jle 0x5f37b8
mov ecx, dword [esi + 0x42]
mov edx, dword [esi + 0x3a]
sub ecx, edx
mov eax, 0x38e38e39
sub ecx, edi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [esi + 0xd6]
mov ecx, eax
mov dword [esi + 0xda], edx
sub ecx, edx
xor edx, edx
inc ecx
test ecx, ecx
setl dl
dec edx
and ecx, edx
cmp ecx, eax
mov dword [esi + 0xd2], ecx
mov dword [esp + 0x10], ecx
jg 0x5f37b8
mov ebp, dword [esp + 0x90]
lea eax, [ecx + ecx*2]
shl eax, 2
mov dword [esp + 0x14], eax
mov edx, dword [esi + 0x18c]
add eax, edx
mov dx, word [eax]
test dx, dx
jbe 0x5f3280
mov ebx, dword [eax + 2]
test ebx, ebx
jbe 0x5f3280
test ecx, ecx
je 0x5f306a
mov bx, word [eax - 0xc]
cmp dx, bx
jae 0x5f306a
mov word [eax], bx
mov eax, dword [esi + 0x18c]
mov edx, dword [esp + 0x14]
xor ebx, ebx
mov bx, word [eax + edx]
mov eax, 0x88888889
add ebx, 0x5460
mul ebx
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x24], ebx
shr edx, 5
test eax, eax
mov dword [esp + 0x30], edx
je 0x5f30c3
cmp eax, edx
je 0x5f30c3
mov ecx, dword [0x73a954]
mov edx, dword [esi + 0x3e]
lea eax, [edi - 1]
push 4
push ecx
push eax
push edx
push eax
mov eax, dword [esi + 0x36]
mov ecx, 0x732bc0
push eax
push ebp
call fcn.00495e50
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x5f30f1
cmp eax, ebx
jne 0x5f30f1
mov edx, dword [esi + 0x190]
mov eax, dword [edx + ecx*4]
lea ecx, [esp + 0x54]
inc eax
push eax
push 0x69a740
push 0x38
push 0x808080
push edi
push 3
push ebp
push ecx
jmp 0x5f3112
push ebx
call fcn.00473340
mov edx, dword [0x73a974]
add esp, 4
push eax
push 0x69a8e4
push 0
push edx
push edi
push 3
lea eax, [esp + 0x64]
push ebp
push eax
push 0x732bc0
call fcn.00496440
mov ebx, dword [esp + 0x40]
mov ecx, dword [esi + 0x4e]
mov edx, dword [esi + 0xf6]
mov eax, dword [esi + 0x18c]
add esp, 0x24
mov dword [esp + 0x48], 0
push 0
push ebx
push ecx
mov ecx, dword [esp + 0x20]
push edx
push ecx
mov edx, dword [eax + ecx + 2]
lea eax, [ebx + 3]
mov dword [esp + 0x58], edx
mov ecx, 0x732bc0
fild qword [esp + 0x58]
fmul qword [0x662cb8]
fstp dword [esp]
push edi
push eax
lea eax, [esp + 0x58]
push ebp
push eax
call fcn.00496a70
mov ecx, dword [esi + 0x194]
mov edx, dword [esp + 0x10]
mov al, byte [ecx + edx]
cmp al, 1
jne 0x5f3194
mov eax, dword [0x7399fc]
mov edx, dword [esp + 0x18]
lea ecx, [edi + 3]
push eax
mov eax, dword [ebp + 4]
push ecx
push edx
push eax
jmp 0x5f31ac
cmp al, 2
jne 0x5f31b2
mov ecx, dword [0x7399f8]
mov eax, dword [esp + 0x18]
lea edx, [edi + 3]
push ecx
mov ecx, dword [ebp + 4]
push edx
push eax
push ecx
call dword [fcn.0065f5d0]
mov edx, dword [esi + 0x48]
mov eax, dword [esi + 0x18c]
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [eax + ecx + 6]
push edx
call fcn.0047ca00
add esp, 8
test eax, eax
mov eax, 0xc000c0
jne 0x5f31db
mov eax, dword [0x73a998]
mov ecx, dword [esi + 0x18c]
mov edx, dword [esp + 0x14]
add ebx, 0xfffffff8
mov ecx, dword [ecx + edx + 6]
mov edx, dword [esp + 0x18]
push ecx
push 0x6a2b24
push ebx
push eax
push edi
push edx
lea eax, [esp + 0x4c]
push ebp
push eax
push 0x732bc0
call fcn.00496440
mov ecx, dword [esi + 0x18c]
mov edx, dword [esp + 0x38]
add esp, 0x24
mov al, byte [ecx + edx + 0xb]
test al, al
jne 0x5f323c
mov eax, dword [0x73a95c]
mov ecx, dword [esp + 0x20]
push 0x6b5b88
push 0xe
push eax
add ecx, 0xfffffff0
push edi
push ecx
push ebp
lea edx, [esp + 0x74]
jmp 0x5f325b
cmp al, 1
jne 0x5f3269
mov eax, dword [0x73a968]
mov ecx, dword [esp + 0x20]
push 0x6a1f50
push 0xe
push eax
add ecx, 0xfffffff0
push edi
push ecx
push ebp
lea edx, [esp + 0x7c]
push edx
push 0x732bc0
call fcn.00496440
add esp, 0x20
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x10]
add edi, 0x12
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x14]
mov edx, dword [esi + 0xd6]
inc ecx
add eax, 0xc
cmp ecx, edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jle 0x5f303b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret 4
mov eax, dword [esi + 0x48]
mov edi, dword [esp + 0x90]
lea ecx, [esp + 0x54]
lea edx, [eax + 0x18]
push edx
push eax
mov eax, dword [0x73a96c]
push 0x6c108c
push eax
push 3
push 0x12
push edi
push ecx
push 0x732bc0
call fcn.00496340
mov edx, dword [0x73a9c4]
mov eax, dword [esp + 0x78]
add esp, 0x24
add eax, 0x2a
lea ecx, [esp + 0x64]
push 0x6bfa94
push edx
push 3
push eax
push edi
push ecx
push 0x732bc0
call fcn.00496340
mov eax, dword [esi + 0x3e]
mov ebx, dword [esi + 0x36]
sub eax, ebx
lea ecx, [ebp + 0x13]
cdq
idiv ecx
add esp, 0x1c
cmp eax, 1
jge 0x5f3320
mov ebp, 1
mov dword [esp + 0x14], ebp
jmp 0x5f3331
mov eax, dword [esi + 0x3e]
mov edx, dword [esi + 0x36]
sub eax, edx
cdq
idiv ecx
mov dword [esp + 0x14], eax
mov ebp, eax
mov eax, dword [esi + 0x3e]
mov ecx, dword [esi + 0x36]
sub eax, ecx
push 0x1a
dec eax
mov ecx, 0x732bc0
cdq
idiv ebp
mov ebx, eax
imul ebp, ebx
mov dword [esp + 0x24], ebx
lea eax, [ebp + 1]
push eax
push 0x1a
push 0
push edi
mov dword [esp + 0x50], eax
call fcn.00495d40
mov edx, dword [esi + 0x42]
mov ecx, 0x732bc0
push edx
push ebp
push 0
push ebp
push edi
call fcn.00495d40
mov eax, dword [esp + 0x14]
test eax, eax
jle 0x5f342b
mov ebp, 3
mov dword [esp + 0x30], eax
mov ecx, dword [0x73a974]
push 0x6c1080
push 0
push ecx
push 0x1c
push ebp
lea edx, [esp + 0x78]
push edi
push edx
push 0x732bc0
call fcn.00496440
mov eax, dword [esp + 0x3c]
mov ecx, dword [0x73a974]
add esp, 0x20
lea edx, [esp + 0x5c]
push 0x6bfa8c
push eax
push ecx
add eax, ebp
push 0x1c
push eax
push edi
push edx
push 0x732bc0
call fcn.00496440
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov ecx, dword [0x73a974]
add esp, 0x20
push 0x6a0bf4
push eax
push ecx
lea eax, [edx + ebp - 1]
push 0x1c
push eax
lea ecx, [esp + 0x60]
push edi
push ecx
push 0x732bc0
call fcn.00496440
mov edx, dword [esi + 0x42]
add esp, 0x20
lea eax, [ebx + ebp - 3]
mov ecx, 0x732bc0
push edx
push eax
push 0x1a
push eax
push edi
call fcn.00495d40
mov eax, dword [esp + 0x30]
add ebp, ebx
dec eax
mov dword [esp + 0x30], eax
jne 0x5f3387
mov eax, dword [esp + 0x3c]
push 0x30
push eax
push 0x30
push 0
push edi
mov ecx, 0x732bc0
call fcn.00495d40
mov eax, dword [esi + 0xca]
mov ebx, 0x34
test eax, eax
jle 0x5f37b8
mov ecx, dword [esi + 0x42]
mov ebp, dword [esi + 0x3a]
sub ecx, ebp
mov eax, 0x38e38e39
sub ecx, ebx
mov dword [esp + 0x34], 0
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov ecx, dword [esi + 0xd6]
mov eax, edx
mov ebp, ecx
imul eax, dword [esp + 0x14]
sub ebp, eax
mov dword [esi + 0xda], eax
inc ebp
xor eax, eax
test ebp, ebp
setl al
dec eax
mov dword [esp + 0x44], edx
and eax, ebp
cmp eax, ecx
mov dword [esi + 0xd2], eax
mov dword [esp + 0x10], eax
jg 0x5f37b8
lea ecx, [eax + eax*2]
mov dword [esp + 0x3c], edx
shl ecx, 2
mov dword [esp + 0x14], ecx
mov ebp, 3
mov edx, dword [esi + 0x18c]
add ecx, edx
mov dx, word [ecx]
test dx, dx
jbe 0x5f379a
cmp dword [ecx + 2], 0
jbe 0x5f379a
test eax, eax
je 0x5f34f0
mov ax, word [ecx - 0xc]
cmp dx, ax
jae 0x5f34f0
mov word [ecx], ax
mov eax, dword [esi + 0x18c]
mov edx, dword [esp + 0x14]
xor ecx, ecx
mov cx, word [eax + edx]
mov eax, 0x88888889
add ecx, 0x5460
mul ecx
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x24], ecx
shr edx, 5
test eax, eax
mov dword [esp + 0x30], edx
je 0x5f354e
cmp eax, edx
je 0x5f354e
mov ecx, dword [0x73a954]
mov edx, dword [esp + 0x20]
push 4
lea eax, [ebx - 1]
push ecx
lea ecx, [edx + ebp - 3]
push eax
push ecx
lea edx, [ebp - 3]
push eax
push edx
push edi
mov ecx, 0x732bc0
call fcn.00495e50
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x5f357f
cmp eax, ecx
jne 0x5f357f
mov eax, dword [esi + 0x190]
mov ecx, dword [esp + 0x10]
mov edx, dword [eax + ecx*4]
lea eax, [esp + 0x64]
inc edx
push edx
push 0x69a740
push 0x38
push 0x808080
push ebx
push ebp
push edi
push eax
jmp 0x5f359f
push ecx
call fcn.00473340
mov ecx, dword [0x73a974]
add esp, 4
lea edx, [esp + 0x5c]
push eax
push 0x69a8e4
push 0
push ecx
push ebx
push ebp
push edi
push edx
push 0x732bc0
call fcn.00496440
mov eax, dword [esp + 0x40]
mov ecx, dword [esi + 0x4e]
mov edx, dword [esi + 0xf6]
add esp, 0x24
mov dword [esp + 0x50], 0
push 0
push eax
push ecx
mov ecx, dword [esi + 0x18c]
push edx
mov edx, dword [esp + 0x24]
add eax, 3
mov ecx, dword [ecx + edx + 2]
mov dword [esp + 0x5c], ecx
push ecx
fild qword [esp + 0x60]
lea edx, [eax + ebp - 3]
lea eax, [esp + 0x80]
mov ecx, 0x732bc0
fmul qword [0x662cb8]
fstp dword [esp]
push ebx
push edx
push edi
push eax
call fcn.00496a70
mov ecx, dword [esi + 0x194]
mov edx, dword [esp + 0x10]
mov al, byte [ecx + edx]
cmp al, 1
jne 0x5f362c
mov eax, dword [0x7399fc]
mov edx, dword [esp + 0x18]
lea ecx, [ebx + 3]
push eax
push ecx
mov ecx, dword [edi + 4]
lea eax, [edx + ebp - 3]
push eax
push ecx
jmp 0x5f3648
cmp al, 2
jne 0x5f364e
mov edx, dword [0x7399f8]
mov ecx, dword [esp + 0x18]
lea eax, [ebx + 3]
push edx
push eax
mov eax, dword [edi + 4]
lea edx, [ecx + ebp - 3]
push edx
push eax
call dword [fcn.0065f5d0]
mov eax, dword [esi + 0x48]
cmp dword [eax + 0xc], 0x3f800000
jne 0x5f366b
mov ecx, dword [esi + 0x72]
test ecx, ecx
jne 0x5f366b
mov dword [esp + 0x2c], 0x6c1078
jmp 0x5f368b
cmp dword [eax + 0xc], 0x41200000
jne 0x5f3683
mov ecx, dword [esi + 0x72]
mov dword [esp + 0x2c], 0x6c1070
test ecx, ecx
je 0x5f368b
mov dword [esp + 0x2c], 0x6c1064
mov ecx, dword [esi + 0x18c]
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [ecx + edx + 6]
push eax
call fcn.0047ca00
add esp, 8
mov ecx, 0xc000c0
test eax, eax
jne 0x5f36b2
mov ecx, dword [0x73a998]
mov edx, dword [esi + 0x18c]
mov eax, dword [esp + 0x14]
add eax, edx
movsx edx, byte [eax + 0xa]
mov eax, dword [eax + 6]
push edx
mov edx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x24]
push edx
add eax, 0xe
push eax
push ecx
mov ecx, dword [esp + 0x2c]
push ebx
lea eax, [esp + 0x8c]
lea edx, [ecx + ebp - 3]
push edx
push edi
push eax
push 0x732bc0
call fcn.00496440
mov ecx, dword [esi + 0x18c]
mov edx, dword [esp + 0x3c]
add esp, 0x28
mov al, byte [ecx + edx + 0xb]
test al, al
jne 0x5f3729
mov ecx, dword [esp + 0x20]
mov eax, dword [0x73a95c]
push 0x6b5b88
push 0xe
push eax
lea edx, [ecx + ebp - 0x13]
push ebx
push edx
lea eax, [esp + 0x90]
push edi
push eax
jmp 0x5f374e
cmp al, 1
jne 0x5f375b
mov edx, dword [esp + 0x20]
mov ecx, dword [0x73a968]
push 0x6a1f50
push 0xe
push ecx
lea eax, [edx + ebp - 0x13]
push ebx
push eax
lea ecx, [esp + 0x98]
push edi
push ecx
push 0x732bc0
call fcn.00496440
add esp, 0x20
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x3c]
inc ecx
cmp ecx, eax
mov dword [esp + 0x34], ecx
jl 0x5f3783
mov ecx, dword [esp + 0x44]
mov ebx, 0x34
add eax, ecx
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x20]
add ebp, eax
jmp 0x5f3786
add ebx, 0x12
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x28], edx
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0xd6]
inc eax
add ecx, 0xc
cmp eax, edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
jle 0x5f34c2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret 4