Function at 0x439580
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x94
mov eax, dword [esp + 0xb8]
push ebx
push ebp
xor ebx, ebx
cmp eax, ebx
push esi
push edi
mov dword [esp + 0x28], eax
jge 0x4395a3
mov dword [esp + 0x28], 1
mov eax, 0x20
cmp dword [esp + 0xcc], ebx
jne 0x4395b8
mov dword [esp + 0xcc], eax
cmp dword [esp + 0xd0], ebx
jne 0x4395c8
mov dword [esp + 0xd0], eax
mov ebp, dword [esp + 0xd4]
cmp ebp, ebx
jne 0x4395d5
xor ebp, ebp
mov edi, dword [esp + 0xd8]
cmp edi, ebx
jne 0x4395ec
mov edi, 0x800
mov dword [esp + 0xd8], edi
mov eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0xac]
mov esi, dword [esp + 0xb8]
lea edx, [eax + ecx]
mov ecx, dword [esp + 0xb0]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0xc0]
lea eax, [esp + 0x2c]
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0xc4]
mov dword [esi + 0xb4], eax
mov eax, dword [esp + 0xbc]
push ecx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0x9c], ebx
mov dword [esp + 0x98], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x30], 1
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x78], ebx
call fcn.00438a10
add esp, 4
cmp eax, ebx
jne 0x439af6
mov edx, dword [esp + 0xdc]
and edx, 1
mov dword [esi + 0x14], edx
cmp edi, ebx
jbe 0x4396da
mov dword [esi + 0xc], edi
cmp ebp, ebx
jbe 0x4396e1
mov dword [esi + 0x10], ebp
push ebx
push ebx
mov eax, esi
lea edi, [esp + 0x34]
call fcn.00439100
add esp, 8
cmp eax, ebx
jne 0x439af6
cmp dword [esp + 0x30], ebx
jbe 0x439ab3
jmp 0x439710
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xb0]
mov edx, dword [esp + 0x38]
sub eax, ecx
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x34]
mov ebp, eax
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], edx
test ebx, ebx
jne 0x43973f
mov edi, dword [esp + 0x44]
mov dword [esp + 0x20], edi
cmp eax, 2
jb 0x4397fc
jne 0x4397d6
cmp edx, 0x400
ja 0x4397fc
test ebx, ebx
je 0x4397fc
cmp ebx, 4
jae 0x4397fc
cmp dword [esp + 0x10], ecx
je 0x4397fc
cmp dword [esi + 0x14], 0
je 0x439792
lea edx, [esp + 0x1c]
push edx
lea edi, [esp + 0x1c]
mov ecx, esi
call fcn.004394e0
mov ebp, dword [esp + 0x20]
add esp, 4
mov edi, dword [esp + 0x28]
mov dword [esp + 0x14], 0
test edi, edi
je 0x4399cb
cmp ebp, dword [esp + 0xd0]
jae 0x4399cb
mov edx, dword [esp + 0x18]
push ebx
mov ecx, ebp
call fcn.00439450
mov dword [esp + 0xa4], eax
dec eax
add esp, 4
cmp edi, eax
ja 0x43981e
mov eax, edi
mov dword [esp + 0x24], edi
jmp 0x439822
cmp dword [esp + 0x10], ecx
jne 0x4397e0
test ebx, ebx
je 0x4397fc
cmp eax, 3
jne 0x4397f4
cmp edx, 0xc00
jbe 0x439775
cmp ebx, 4
jb 0x439775
jmp 0x4397fc
test eax, eax
jne 0x439775
mov ecx, dword [esp + 0xd8]
push 0
push 1
mov eax, esi
lea edi, [esp + 0x34]
inc ebx
mov dword [esi + 0xc], ecx
call fcn.00439100
add esp, 8
jmp 0x439a89
mov dword [esp + 0x24], eax
test eax, eax
jbe 0x4399cb
lea ebx, [ebx]
cmp dword [esp + 0x30], ebp
jbe 0x4399cb
cmp ebp, dword [esp + 0xcc]
jb 0x439852
mov eax, dword [esp + 0xd8]
shr eax, 2
mov dword [esi + 0xc], eax
jmp 0x43985c
mov ecx, dword [esp + 0xd8]
mov dword [esi + 0xc], ecx
mov eax, 1
add dword [esp + 0x5c], eax
xor edi, edi
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], edi
cmp dword [esi + 0x14], edi
je 0x439887
push 0x88
lea edx, [esi + 0xbc]
push edi
push edx
call fcn.00569490
add esp, 0xc
call fcn.00438f50
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x34], eax
mov eax, esi
mov dword [esp + 0x38], ecx
call fcn.00438bf0
cmp dword [esi + 0x28], edi
jge 0x4398ae
xor eax, eax
mov dword [esp + 0x34], edi
jmp 0x4398b2
mov eax, dword [esi + 0x24]
inc eax
mov ecx, dword [esp + 0x48]
sub ecx, eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x44], ecx
cmp eax, edi
je 0x4398ee
mov ecx, dword [eax + 8]
cmp ecx, edi
je 0x4398ee
mov edx, dword [esp + 0x5c]
cmp edx, dword [esp + 0x64]
jbe 0x4398ee
push edi
mov edi, dword [esp + 0x64]
push edi
push edx
push eax
call ecx
add esp, 0x10
add dword [esp + 0x64], 0x400
mov eax, dword [esp + 0x34]
inc dword [esp + 0x14]
cmp eax, ebp
jb 0x4399b9
jne 0x43990e
mov edx, dword [esp + 0x18]
cmp dword [esp + 0x38], edx
jae 0x4399b9
cmp dword [esi + 0x14], 0
je 0x439927
lea eax, [esp + 0x34]
push eax
lea edi, [esp + 0x3c]
mov ecx, esi
call fcn.004394e0
add esp, 4
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x38]
lea ebp, [ecx + ebx]
mov ecx, dword [esp + 0x34]
push ebp
call fcn.00439450
mov edi, eax
add esp, 4
test edi, edi
je 0x4399b9
mov edx, dword [esp + 0xb0]
cmp dword [esp + 0x10], edx
jne 0x439956
xor eax, eax
jmp 0x439967
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push ebx
call fcn.00439450
add esp, 4
mov edx, dword [esp + 0x14]
mov ecx, edx
cmp ebx, 3
ja 0x439980
mov ecx, 3
cmp ecx, ebp
sbb ecx, ecx
and ecx, 2
jmp 0x439990
cmp ebx, 0x12
ja 0x439992
mov ecx, 0x12
cmp ecx, ebp
sbb ecx, ecx
neg ecx
add ecx, edx
sub edi, dword [esp + 0xa0]
lea ecx, [ecx + edi*2]
test eax, eax
je 0x4399a7
mov edi, eax
sub edi, edx
lea ecx, [ecx + edi*2]
test ecx, ecx
jge 0x4399ad
xor ecx, ecx
mov edx, dword [esp + 0x1c]
add ecx, edx
cmp dword [esp + 0x34], ecx
jae 0x4399f6
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x1c]
cmp eax, dword [esp + 0x24]
jb 0x439830
mov eax, dword [esp + 0x10]
xor ecx, ecx
cmp ebx, ecx
jbe 0x439a51
mov edx, dword [esp + 0x20]
push ebx
push edx
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x1c]
call fcn.004393a0
add esp, 0xc
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x78], ebx
jmp 0x439a59
inc dword [esp + 0x74]
xor ecx, ecx
cmp eax, ecx
je 0x439a4b
mov eax, dword [esp + 0x10]
cmp ebx, ecx
jbe 0x439a25
mov ecx, dword [esp + 0x20]
push ebx
push ecx
lea edx, [esp + 0x34]
push edx
call fcn.004393a0
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov dword [esp + 0x78], ebx
jmp 0x439a29
mov dword [esp + 0x78], ecx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x7c], ecx
mov ecx, dword [esp + 0x14]
push edx
push ecx
lea edi, [esp + 0x34]
xor ebx, ebx
call fcn.004391c0
add esp, 8
mov dword [esp + 0x10], eax
jmp 0x439a89
add ebx, dword [esp + 0x14]
jmp 0x439a89
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x78], ecx
mov ecx, dword [esp + 0x18]
push ecx
push ebp
lea edi, [esp + 0x34]
xor ebx, ebx
call fcn.004391c0
mov edx, dword [esp + 0xe0]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1c]
inc eax
push eax
push ebp
mov eax, esi
mov dword [esi + 0xc], edx
call fcn.00439100
add esp, 0x10
cmp dword [esp + 0x30], 0
ja 0x439710
test ebx, ebx
jbe 0x439ab3
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
push ebx
push ecx
lea edx, [esp + 0x34]
push edx
call fcn.004393a0
add esp, 0xc
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xb4]
mov byte [eax], 0x11
inc eax
mov byte [eax], 0
inc eax
mov byte [eax], 0
inc eax
sub eax, dword [esp + 0xb0]
mov dword [ecx], eax
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x60], eax
test ecx, ecx
je 0x439af4
mov edx, dword [ecx + 8]
test edx, edx
je 0x439af4
push 0
push eax
mov eax, dword [esp + 0x64]
push eax
push ecx
call edx
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret