Function at 0x100d5970
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.100d5550
add esp, 0x30
test al, al
jne 0x100d59e1
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x848
ret
test byte [esp + 0x860], 0x40
mov dword [esp + 0x18], 0x900
je 0x100d59fb
mov dword [esp + 0x18], 0x1200
mov eax, dword [esp + 0x1c]
push ebx
push eax
push esi
call fcn.100d7321
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx + 0x4874]
add esp, 0xc
cmp eax, ebx
jne 0x100d5a40
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
push ebx
push edx
push eax
push esi
call fcn.100d5340
add esp, 0x10
cmp eax, ebx
mov dword [esp + 0x14], eax
jne 0x100d5a5e
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x848
ret
mov eax, dword [esp + 0x14]
cmp eax, ebx
jne 0x100d5a5e
pop esi
pop ebp
mov dword [0x1013a120], 0xa
xor eax, eax
pop ebx
add esp, 0x848
ret
mov ecx, dword [esp + 0x860]
test cl, 0x10
je 0x100d5a6c
shr eax, 1
mov edx, ecx
and edx, 0x40
je 0x100d5a75
shr eax, 1
test ch, 0x10
je 0x100d5a8b
cmp edx, ebx
je 0x100d5a8b
or ecx, 0x40000
mov dword [esp + 0x860], ecx
test ecx, 0x40000
je 0x100d5aa5
test cl, 0x40
je 0x100d5aa5
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.100c9cd6
mov ebp, eax
test ebp, ebp
jne 0x100d5ae9
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.100cab6e
mov edx, dword [esp + 0x28]
mov dword [ebp + 0x168], edx
mov eax, dword [esp + 0x20]
push 0
push eax
push esi
call fcn.100d7321
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.100ca91d
push esi
push 4
lea eax, [esp + 0x60]
push 1
push eax
mov dword [esp + 0x34], 0
call fcn.100d70a3
add esp, 0x10
cmp eax, 4
jne 0x100d5c29
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.100e1770
mov edi, eax
add esp, 0x14
test edi, edi
je 0x100d5bea
mov eax, dword [esp + 0x24]
test eax, eax
je 0x100d5be6
push esi
call fcn.100d7400
mov edx, dword [esp + 0x14]
push 1
push edx
push esi
mov ebx, eax
call fcn.100d7321
push esi
push 4
lea eax, [esp + 0x6c]
push 1
push eax
call fcn.100d70a3
mov eax, dword [esp + 0x74]
add esp, 0x20
cmp al, 0xff
jne 0x100d5bd4
and eax, 0xe000
cmp eax, 0xe000
je 0x100d5bd6
xor edi, edi
push 0
push ebx
push esi
call fcn.100d7321
mov ebx, dword [esp + 0x3c]
add esp, 0xc
test edi, edi
jne 0x100d5bf7
push 1
push 0xfffffffffffffffd
push esi
call fcn.100d7321
add esp, 0xc
mov ecx, dword [esp + 0x24]
inc ecx
test edi, edi
mov dword [esp + 0x24], ecx
jne 0x100d5c2d
mov ecx, dword [esp + 0x14]
cmp ecx, dword [esp + 0x2c]
jae 0x100d5c8d
push esi
push 4
lea edx, [esp + 0x60]
push 1
push edx
call fcn.100d70a3
add esp, 0x10
cmp eax, 4
je 0x100d5b60
xor edi, edi
jmp 0x100d5c8d
mov eax, dword [esp + 0x10]
push esi
push eax
lea ecx, [esp + 0x64]
push 1
push ecx
call fcn.100d70a3
mov ecx, dword [esp + 0x20]
add esp, 0x10
cmp eax, ecx
jne 0x100d5cac
test eax, eax
jle 0x100d5cac
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.100e19e0
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 0x100d5cac
mov ecx, dword [esp + 0x2c]
cmp dword [esp + 0x14], ecx
jae 0x100d5cac
test edi, edi
jne 0x100d5b3d
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.100ca9ba
mov cl, byte [esp + 0x864]
test cl, 0x10
mov eax, ebx
pop edi
je 0x100d5cd9
shr ebx, 1
mov eax, ebx
test cl, 0x40
je 0x100d5ce0
shr eax, 1
cmp eax, dword [ebp + 0x10c]
jae 0x100d5cee
mov dword [ebp + 0x10c], eax
mov ecx, dword [esp + 0x34]
test ecx, ecx
mov edx, dword [esp + 0x38]
jne 0x100d5d09
test edx, edx
jne 0x100d5d09
dec eax
push eax
push edx
push ebp
call fcn.100cab6e
jmp 0x100d5d30
push edx
push ecx
push ebp
call fcn.100cab6e
mov eax, dword [esp + 0x860]
test al, 1
jne 0x100d5d30
and eax, 0xfffffffa
or eax, 2
push eax
push ebp
mov dword [esp + 0x868], eax
call fcn.100caa03
mov eax, dword [ebp + 0x168]
push eax
call fcn.100d5520
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x848
ret