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

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0x28
mov esi, edx
mov ebp, eax
movsx edx, byte [esp + 0x58]
test ebp, ebp
je 0x438d3c
mov ebx, dword [ebp + 0x34]
test esi, esi
je 0x438d35
mov edi, dword [esi + 0x34]
mov ecx, dword [ebx + 0x78]
mov eax, dword [ebx + 0x7c]
mov dword [esp + 0x24], eax
test edx, edx
je 0x438bb7
mov ebp, dword [edi + 0x78]
imul ebp, dword [edi + 0x7c]
add ebp, ebp
add ebp, ebp
mov eax, ecx
imul eax, dword [esp + 0x24]
add eax, eax
add eax, eax
cmp ebp, eax
jne 0x438a37
mov eax, dword [edi + 0x90]
movsx ebp, byte [esp + 0x5c]
cmp ebp, 0xb
je 0x438a0f
movsx ebp, byte [esp + 0x5c]
cmp ebp, 0xc
je 0x4389ea
mov eax, esi
call fcn.0040870c
mov eax, 0xb60b60b7
mov ecx, dword [esp + 0x54]
imul ecx
add edx, ecx
sar edx, 7
mov ebp, ecx
sar ebp, 0x1f
sub edx, ebp
lea esi, [edx + edx]
add esi, esi
sub esi, edx
add esi, esi
add esi, esi
lea eax, [esi + esi]
add eax, eax
add eax, eax
add eax, eax
sub eax, esi
sub ecx, eax
test ecx, ecx
je 0x4389d3
mov byte [edi + 0x86], 1
jmp 0x4389e0
movzx eax, byte [ebx + 0x86]
mov byte [edi + 0x86], al
xor eax, eax
add esp, 0x28
pop ebx
pop ebp
pop esi
pop edi
ret
mov ebp, dword [esp + 0x24]
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x54]
mov dword [esp + 0x18], ebp
mov edx, dword [ebx + 0x90]
call fcn.00438d50
jmp 0x438990
mov ebp, dword [esp + 0x24]
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x54]
mov dword [esp + 0x18], ebp
mov edx, dword [ebx + 0x90]
call fcn.00439b94
jmp 0x438990
lea eax, [ecx + ecx]
add eax, eax
cmp ecx, 0x2000
jg 0x438b78
mov ebp, dword [esp + 0x24]
imul ebp, eax
lea ebp, [ebp + eax + 4]
push ebp
mov dword [esp + 0x20], ecx
call fcn.0046bddc
mov ecx, dword [esp + 0x20]
add esp, 4
mov dword [esp + 0x20], eax
mov ebp, eax
test ebp, ebp
je 0x438b3b
mov ebp, dword [esp + 0x20]
test ebp, ebp
jne 0x438a87
mov eax, 0xffffffff
add esp, 0x28
pop ebx
pop ebp
pop esi
pop edi
ret
movsx ebp, byte [esp + 0x5c]
cmp ebp, 0xb
je 0x438b07
movsx ebp, byte [esp + 0x5c]
cmp ebp, 0xc
je 0x438ad6
mov ebp, dword [edi + 0x90]
test ebp, ebp
je 0x438ab6
push ebp
mov dword [esp + 0x20], ecx
call fcn.0046c03f
mov ecx, dword [esp + 0x20]
add esp, 4
mov ebp, dword [esp + 0x20]
mov dword [edi + 0x90], ebp
mov dword [edi + 0x78], ecx
mov ecx, dword [esp + 0x24]
mov dword [edi + 0x7c], ecx
mov eax, esi
call fcn.0040870c
jmp 0x438997
mov ebp, dword [esp + 0x24]
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x54]
mov dword [esp + 0x18], ebp
mov eax, dword [esp + 0x20]
mov edx, dword [ebx + 0x90]
mov dword [esp + 0x1c], ecx
call fcn.00438d50
mov ecx, dword [esp + 0x1c]
jmp 0x438a9b
mov ebp, dword [esp + 0x24]
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x54]
mov dword [esp + 0x18], ebp
mov eax, dword [esp + 0x20]
mov edx, dword [ebx + 0x90]
mov dword [esp + 0x1c], ecx
call fcn.00439b94
mov ecx, dword [esp + 0x1c]
jmp 0x438a9b
mov ebp, dword [esp + 0x24]
push ebp
push ecx
push 0
push 0x81163c
push 0x810270
mov dword [esp + 0x30], ecx
call fcn.00417454
mov ecx, dword [esp + 0x30]
push 0
push 1
push 0x1965e
mov dword [esp + 0x3c], ecx
call fcn.00468e58
mov ecx, dword [esp + 0x3c]
add esp, 0x20
jmp 0x438a72
mov ebp, dword [esp + 0x24]
push ebp
push ecx
push 0x811614
push 0x810270
mov dword [esp + 0x2c], ecx
call fcn.0040c598
mov ecx, dword [esp + 0x2c]
push 1
push 0x186aa
mov dword [esp + 0x34], ecx
call fcn.00468eb4
mov ecx, dword [esp + 0x34]
add esp, 0x18
xor ebp, ebp
mov dword [esp + 0x20], ebp
jmp 0x438a72
mov edi, ebx
lea esi, [ecx + ecx]
add esi, esi
cmp ecx, 0x2000
jg 0x438cf8
mov edx, eax
imul edx, esi
lea esi, [edx + esi + 4]
push esi
mov dword [esp + 0x20], ecx
call fcn.0046bddc
mov ecx, dword [esp + 0x20]
add esp, 4
mov dword [esp + 0x20], eax
mov edx, eax
test edx, edx
je 0x438cbb
mov edx, dword [esp + 0x20]
test edx, edx
jne 0x438c07
mov eax, 0xffffffff
add esp, 0x28
pop ebx
pop ebp
pop esi
pop edi
ret
movsx edx, byte [esp + 0x5c]
cmp edx, 0xb
je 0x438c87
movsx edx, byte [esp + 0x5c]
cmp edx, 0xc
je 0x438c56
mov edx, dword [ebx + 0x90]
test edx, edx
je 0x438c36
push edx
mov dword [esp + 0x20], ecx
call fcn.0046c03f
mov ecx, dword [esp + 0x20]
add esp, 4
mov edx, dword [esp + 0x20]
mov dword [ebx + 0x90], edx
mov dword [ebx + 0x78], ecx
mov ecx, dword [esp + 0x24]
mov dword [ebx + 0x7c], ecx
mov eax, ebp
call fcn.0040870c
jmp 0x438997
mov esi, dword [esp + 0x24]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], esi
mov edx, dword [esp + 0x54]
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x20]
mov edx, dword [ebx + 0x90]
mov dword [esp + 0x1c], ecx
call fcn.00438d50
mov ecx, dword [esp + 0x1c]
jmp 0x438c1b
mov esi, dword [esp + 0x24]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], esi
mov edx, dword [esp + 0x54]
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x20]
mov edx, dword [ebx + 0x90]
mov dword [esp + 0x1c], ecx
call fcn.00439b94
mov ecx, dword [esp + 0x1c]
jmp 0x438c1b
mov edx, dword [esp + 0x24]
push edx
push ecx
push 0
push 0x81163c
push 0x810270
mov dword [esp + 0x30], ecx
call fcn.00417454
mov ecx, dword [esp + 0x30]
push 0
push 1
push 0x1965e
mov dword [esp + 0x3c], ecx
call fcn.00468e58
mov ecx, dword [esp + 0x3c]
add esp, 0x20
jmp 0x438bf2
mov edx, eax
push edx
push ecx
push 0x811614
push 0x810270
mov dword [esp + 0x2c], ecx
call fcn.0040c598
mov ecx, dword [esp + 0x2c]
push 1
push 0x186aa
mov dword [esp + 0x34], ecx
call fcn.00468eb4
mov ecx, dword [esp + 0x34]
add esp, 0x18
xor edx, edx
mov dword [esp + 0x20], edx
jmp 0x438bf2
xor edi, edi
jmp 0x438942
xor ebx, ebx
jmp 0x438937