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

Disassembly:
sub esp, 0x94
mov eax, dword [esp + 0xb8]
push ebx
push ebp
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x28], eax
cmp eax, ebx
jge 0x4395c3
mov dword [esp + 0x28], 1
mov eax, 0x20
cmp dword [esp + 0xcc], ebx
jne 0x4395d8
mov dword [esp + 0xcc], eax
cmp dword [esp + 0xd0], ebx
jne 0x4395e8
mov dword [esp + 0xd0], eax
mov ebp, dword [esp + 0xd4]
cmp ebp, ebx
jne 0x4395f5
xor ebp, ebp
mov edi, dword [esp + 0xd8]
cmp edi, ebx
jne 0x43960c
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.00438a50
add esp, 4
cmp eax, ebx
jne 0x439b13
mov edx, dword [esp + 0xdc]
and edx, 1
mov dword [esi + 0x14], edx
cmp edi, ebx
jbe 0x4396fa
mov dword [esi + 0xc], edi
cmp ebp, ebx
jbe 0x439701
mov dword [esi + 0x10], ebp
push ebx
push ebx
mov eax, esi
lea edi, [esp + 0x34]
call fcn.00439130
add esp, 8
cmp eax, ebx
jne 0x439b13
cmp dword [esp + 0x30], ebx
jbe 0x439ad0
jmp 0x439730
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 0x43975f
mov edi, dword [esp + 0x44]
mov dword [esp + 0x20], edi
cmp eax, 2
jb 0x43981c
jne 0x4397f6
cmp edx, 0x400
ja 0x43981c
test ebx, ebx
je 0x43981c
cmp ebx, 4
jae 0x43981c
cmp dword [esp + 0x10], ecx
je 0x43981c
cmp dword [esi + 0x14], 0
je 0x4397b2
lea edx, [esp + 0x1c]
push edx
lea edi, [esp + 0x1c]
mov ecx, esi
call fcn.00439500
mov ebp, dword [esp + 0x20]
add esp, 4
mov edi, dword [esp + 0x28]
mov dword [esp + 0x14], 0
test edi, edi
je 0x4399e8
cmp ebp, dword [esp + 0xd0]
jae 0x4399e8
mov edx, dword [esp + 0x18]
push ebx
mov ecx, ebp
call fcn.00439470
mov dword [esp + 0xa4], eax
dec eax
add esp, 4
cmp edi, eax
ja 0x43983e
mov eax, edi
mov dword [esp + 0x24], edi
jmp 0x439842
cmp dword [esp + 0x10], ecx
jne 0x439800
test ebx, ebx
je 0x43981c
cmp eax, 3
jne 0x439814
cmp edx, 0xc00
jbe 0x439795
cmp ebx, 4
jb 0x439795
jmp 0x43981c
test eax, eax
jne 0x439795
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.00439130
add esp, 8
jmp 0x439aa6
mov dword [esp + 0x24], eax
test eax, eax
je 0x4399e8
lea ebx, [ebx]
cmp dword [esp + 0x30], ebp
jbe 0x4399e8
cmp ebp, dword [esp + 0xcc]
jb 0x439872
mov eax, dword [esp + 0xd8]
shr eax, 2
mov dword [esi + 0xc], eax
jmp 0x43987c
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 0x4398a7
push 0x88
lea edx, [esi + 0xbc]
push edi
push edx
call fcn.006279a0
add esp, 0xc
call fcn.00438f80
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.00438c20
cmp dword [esi + 0x28], edi
jge 0x4398ce
xor eax, eax
mov dword [esp + 0x34], edi
jmp 0x4398d2
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 0x43990e
mov ecx, dword [eax + 8]
cmp ecx, edi
je 0x43990e
mov edx, dword [esp + 0x5c]
cmp edx, dword [esp + 0x64]
jbe 0x43990e
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 0x4399d6
jne 0x43992e
mov edx, dword [esp + 0x18]
cmp dword [esp + 0x38], edx
jae 0x4399d6
cmp dword [esi + 0x14], 0
je 0x439947
lea eax, [esp + 0x34]
push eax
lea edi, [esp + 0x3c]
mov ecx, esi
call fcn.00439500
add esp, 4
mov ebp, dword [esp + 0x14]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
add ebp, ebx
push ebp
call fcn.00439470
mov edi, eax
add esp, 4
test edi, edi
je 0x4399d6
mov edx, dword [esp + 0xb0]
cmp dword [esp + 0x10], edx
jne 0x439975
xor eax, eax
jmp 0x439986
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push ebx
call fcn.00439470
add esp, 4
mov edx, dword [esp + 0x14]
mov ecx, edx
cmp ebx, 3
ja 0x43999f
mov ecx, 3
cmp ecx, ebp
sbb ecx, ecx
and ecx, 2
jmp 0x4399af
cmp ebx, 0x12
ja 0x4399b1
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 0x4399c6
mov edi, eax
sub edi, edx
lea ecx, [ecx + edi*2]
test ecx, ecx
jns 0x4399cc
xor ecx, ecx
add ecx, dword [esp + 0x1c]
cmp dword [esp + 0x34], ecx
jae 0x439a13
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x1c]
cmp eax, dword [esp + 0x24]
jb 0x439850
mov eax, dword [esp + 0x10]
xor ecx, ecx
cmp ebx, ecx
jbe 0x439a6e
mov edx, dword [esp + 0x20]
push ebx
push edx
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x1c]
call fcn.004393d0
add esp, 0xc
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x78], ebx
jmp 0x439a76
inc dword [esp + 0x74]
xor ecx, ecx
cmp eax, ecx
je 0x439a68
mov eax, dword [esp + 0x10]
cmp ebx, ecx
jbe 0x439a42
mov ecx, dword [esp + 0x20]
push ebx
push ecx
lea edx, [esp + 0x34]
push edx
call fcn.004393d0
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov dword [esp + 0x78], ebx
jmp 0x439a46
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.004391f0
add esp, 8
mov dword [esp + 0x10], eax
jmp 0x439aa6
add ebx, dword [esp + 0x14]
jmp 0x439aa6
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.004391f0
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.00439130
add esp, 0x10
cmp dword [esp + 0x30], 0
ja 0x439730
test ebx, ebx
je 0x439ad0
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
push ebx
push ecx
lea edx, [esp + 0x34]
push edx
call fcn.004393d0
add esp, 0xc
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xb4]
mov word [eax], 0x11
mov byte [eax + 2], 0
add eax, 3
sub eax, dword [esp + 0xb0]
mov dword [ecx], eax
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x60], eax
test ecx, ecx
je 0x439b11
mov edx, dword [ecx + 8]
test edx, edx
je 0x439b11
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