Function at 0x100d1850
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.100d1430
add esp, 0x30
test al, al
jne 0x100d18c1
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x848
ret
test byte [esp + 0x860], 0x40
mov dword [esp + 0x18], 0x900
je 0x100d18db
mov dword [esp + 0x18], 0x1200
mov eax, dword [esp + 0x1c]
push ebx
push eax
push esi
call fcn.100d3156
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx + 0x4874]
add esp, 0xc
cmp eax, ebx
jne 0x100d1920
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
push ebx
push edx
push eax
push esi
call fcn.100d1220
add esp, 0x10
cmp eax, ebx
mov dword [esp + 0x14], eax
jne 0x100d193e
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x848
ret
mov eax, dword [esp + 0x14]
cmp eax, ebx
jne 0x100d193e
pop esi
pop ebp
mov dword [0x101337d8], 0xa
xor eax, eax
pop ebx
add esp, 0x848
ret
mov ecx, dword [esp + 0x860]
test cl, 0x10
je 0x100d194c
shr eax, 1
mov edx, ecx
and edx, 0x40
je 0x100d1955
shr eax, 1
test ch, 0x10
je 0x100d196b
cmp edx, ebx
je 0x100d196b
or ecx, 0x40000
mov dword [esp + 0x860], ecx
test ecx, 0x40000
je 0x100d1985
test cl, 0x40
je 0x100d1985
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.100c5f98
mov ebp, eax
test ebp, ebp
jne 0x100d19c9
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.100c6dfb
mov edx, dword [esp + 0x28]
mov dword [ebp + 0x164], edx
mov eax, dword [esp + 0x20]
push 0
push eax
push esi
call fcn.100d3156
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.100c6baa
push esi
push 4
lea eax, [esp + 0x60]
push 1
push eax
mov dword [esp + 0x34], 0
call fcn.100d2ed8
add esp, 0x10
cmp eax, 4
jne 0x100d1b09
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 + 0x164]
push eax
push ecx
call fcn.100dcdc0
mov edi, eax
add esp, 0x14
test edi, edi
je 0x100d1aca
mov eax, dword [esp + 0x24]
test eax, eax
je 0x100d1ac6
push esi
call fcn.100d3235
mov edx, dword [esp + 0x14]
push 1
push edx
push esi
mov ebx, eax
call fcn.100d3156
push esi
push 4
lea eax, [esp + 0x6c]
push 1
push eax
call fcn.100d2ed8
mov eax, dword [esp + 0x74]
add esp, 0x20
cmp al, 0xff
jne 0x100d1ab4
and eax, 0xe000
cmp eax, 0xe000
je 0x100d1ab6
xor edi, edi
push 0
push ebx
push esi
call fcn.100d3156
mov ebx, dword [esp + 0x3c]
add esp, 0xc
test edi, edi
jne 0x100d1ad7
push 1
push 0xfffffffffffffffd
push esi
call fcn.100d3156
add esp, 0xc
mov ecx, dword [esp + 0x24]
inc ecx
test edi, edi
mov dword [esp + 0x24], ecx
jne 0x100d1b0d
mov ecx, dword [esp + 0x14]
cmp ecx, dword [esp + 0x2c]
jae 0x100d1b6d
push esi
push 4
lea edx, [esp + 0x60]
push 1
push edx
call fcn.100d2ed8
add esp, 0x10
cmp eax, 4
je 0x100d1a40
xor edi, edi
jmp 0x100d1b6d
mov eax, dword [esp + 0x10]
push esi
push eax
lea ecx, [esp + 0x64]
push 1
push ecx
call fcn.100d2ed8
mov ecx, dword [esp + 0x20]
add esp, 0x10
cmp eax, ecx
jne 0x100d1b8c
test eax, eax
jle 0x100d1b8c
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x1c]
push edx
mov edx, dword [ebp + 0x164]
add eax, ebx
push eax
lea ecx, [esp + 0x60]
push ecx
push edx
call fcn.100dd030
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 0x100d1b8c
mov ecx, dword [esp + 0x2c]
cmp dword [esp + 0x14], ecx
jae 0x100d1b8c
test edi, edi
jne 0x100d1a1d
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.100c6c47
mov cl, byte [esp + 0x864]
test cl, 0x10
mov eax, ebx
pop edi
je 0x100d1bb9
shr ebx, 1
mov eax, ebx
test cl, 0x40
je 0x100d1bc0
shr eax, 1
cmp eax, dword [ebp + 0x10c]
jae 0x100d1bce
mov dword [ebp + 0x10c], eax
mov ecx, dword [esp + 0x34]
test ecx, ecx
mov edx, dword [esp + 0x38]
jne 0x100d1be9
test edx, edx
jne 0x100d1be9
dec eax
push eax
push edx
push ebp
call fcn.100c6dfb
jmp 0x100d1c10
push edx
push ecx
push ebp
call fcn.100c6dfb
mov eax, dword [esp + 0x860]
test al, 1
jne 0x100d1c10
and eax, 0xfffffffa
or eax, 2
push eax
push ebp
mov dword [esp + 0x868], eax
call fcn.100c6c90
mov eax, dword [ebp + 0x164]
push eax
call fcn.100d1400
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x848
ret