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

Disassembly:
sub esp, 0x848
push ebx
push ebp
push esi
mov esi, dword [esp + 0x85c]
xor ebx, ebx
push ebx
lea eax, [esp + 0x38]
push eax
push ebx
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x70]
push ecx
lea edx, [esp + 0x888]
push edx
push esi
mov dword [esp + 0x78], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
call fcn.10042f30
add esp, 0x30
test al, al
jne 0x100433c1
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x848
ret
test byte [esp + 0x860], 0x40
mov dword [esp + 0x18], 0x900
je 0x100433db
mov dword [esp + 0x18], 0x1200
mov eax, dword [esp + 0x1c]
push ebx
push eax
push esi
call fcn.1004576d
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx + 0x4874]
add esp, 0xc
cmp eax, ebx
jne 0x10043420
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
push ebx
push edx
push eax
push esi
call fcn.10042d20
add esp, 0x10
cmp eax, ebx
mov dword [esp + 0x14], eax
jne 0x1004343e
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x848
ret
mov eax, dword [esp + 0x14]
cmp eax, ebx
jne 0x1004343e
pop esi
pop ebp
mov dword [0x100befa8], 0xa
xor eax, eax
pop ebx
add esp, 0x848
ret
mov ecx, dword [esp + 0x860]
test cl, 0x10
je 0x1004344c
shr eax, 1
mov edx, ecx
and edx, 0x40
je 0x10043455
shr eax, 1
test ch, 0x10
je 0x1004346b
cmp edx, ebx
je 0x1004346b
or ecx, 0x40000
mov dword [esp + 0x860], ecx
test ecx, 0x40000
je 0x10043485
test cl, 0x40
je 0x10043485
and ecx, 0xffffefff
mov dword [esp + 0x860], ecx
mov edx, ecx
and dl, 0x40
neg dl
push 0xff
sbb edx, edx
and edx, 0xffffff7f
add edx, 0x80
push edx
mov edx, dword [esp + 0x54]
push 0xff
push edx
push ecx
push eax
mov eax, dword [esp + 0x870]
push eax
call fcn.100364d2
mov ebp, eax
test ebp, ebp
jne 0x100434c9
pop esi
pop ebp
pop ebx
add esp, 0x848
ret
mov ecx, dword [ebp + 0x10c]
push edi
dec ecx
push ecx
push 0
push ebp
call fcn.1003736a
mov edx, dword [esp + 0x28]
mov dword [ebp + 0x168], edx
mov eax, dword [esp + 0x20]
push 0
push eax
push esi
call fcn.1004576d
add esp, 0xc
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x48]
push edx
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x40]
push ecx
push edx
push 0
push ebp
mov dword [esp + 0x30], 0
call fcn.10037119
push esi
push 4
lea eax, [esp + 0x60]
push 1
push eax
mov dword [esp + 0x34], 0
call fcn.100454ef
add esp, 0x10
cmp eax, 4
jne 0x10043609
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x10]
push edx
push 0
push 0
lea eax, [esp + 0x64]
mov dword [ecx + 0x487c], 0
mov ecx, dword [ebp + 0x168]
push eax
push ecx
call fcn.100585c0
mov edi, eax
add esp, 0x14
test edi, edi
je 0x100435ca
mov eax, dword [esp + 0x24]
test eax, eax
je 0x100435c6
push esi
call fcn.1004584c
mov edx, dword [esp + 0x14]
push 1
push edx
push esi
mov ebx, eax
call fcn.1004576d
push esi
push 4
lea eax, [esp + 0x6c]
push 1
push eax
call fcn.100454ef
mov eax, dword [esp + 0x74]
add esp, 0x20
cmp al, 0xff
jne 0x100435b4
and eax, 0xe000
cmp eax, 0xe000
je 0x100435b6
xor edi, edi
push 0
push ebx
push esi
call fcn.1004576d
mov ebx, dword [esp + 0x3c]
add esp, 0xc
test edi, edi
jne 0x100435d7
push 1
push 0xfffffffffffffffd
push esi
call fcn.1004576d
add esp, 0xc
mov ecx, dword [esp + 0x24]
inc ecx
test edi, edi
mov dword [esp + 0x24], ecx
jne 0x1004360d
mov ecx, dword [esp + 0x14]
cmp ecx, dword [esp + 0x2c]
jae 0x1004366d
push esi
push 4
lea edx, [esp + 0x60]
push 1
push edx
call fcn.100454ef
add esp, 0x10
cmp eax, 4
je 0x10043540
xor edi, edi
jmp 0x1004366d
mov eax, dword [esp + 0x10]
push esi
push eax
lea ecx, [esp + 0x64]
push 1
push ecx
call fcn.100454ef
mov ecx, dword [esp + 0x20]
add esp, 0x10
cmp eax, ecx
jne 0x1004368c
test eax, eax
jle 0x1004368c
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x1c]
push edx
mov edx, dword [ebp + 0x168]
add eax, ebx
push eax
lea ecx, [esp + 0x60]
push ecx
push edx
call fcn.10058830
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
add esp, 0x10
add ebx, eax
mov eax, dword [esp + 0x10]
lea edx, [ecx + eax + 4]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x14], edx
mov edi, 1
mov eax, dword [esp + 0x18]
add eax, 0xfffff000
cmp ebx, eax
jae 0x1004368c
mov ecx, dword [esp + 0x2c]
cmp dword [esp + 0x14], ecx
jae 0x1004368c
test edi, edi
jne 0x1004351d
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x38]
push eax
push ecx
push edx
push ebp
call fcn.100371b6
mov cl, byte [esp + 0x864]
test cl, 0x10
mov eax, ebx
pop edi
je 0x100436b9
shr ebx, 1
mov eax, ebx
test cl, 0x40
je 0x100436c0
shr eax, 1
cmp eax, dword [ebp + 0x10c]
jae 0x100436ce
mov dword [ebp + 0x10c], eax
mov ecx, dword [esp + 0x34]
test ecx, ecx
mov edx, dword [esp + 0x38]
jne 0x100436e9
test edx, edx
jne 0x100436e9
dec eax
push eax
push edx
push ebp
call fcn.1003736a
jmp 0x10043710
push edx
push ecx
push ebp
call fcn.1003736a
mov eax, dword [esp + 0x860]
test al, 1
jne 0x10043710
and eax, 0xfffffffa
or eax, 2
push eax
push ebp
mov dword [esp + 0x868], eax
call fcn.100371ff
mov eax, dword [ebp + 0x168]
push eax
call fcn.10042f00
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x848
ret