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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100f80e0
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x1014f644]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push esi
push edi
mov eax, dword [0x1014f644]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0x14]
test dword [ebx + 0x14], 0x4000
mov esi, dword [ebp + 8]
mov al, byte [ebp + 0x18]
mov dword [esp + 0x24], esi
mov byte [esp + 0x18], al
jne 0x10038793
movzx eax, byte [ebp + 0x1c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
push eax
mov eax, dword [ebp + 0x10]
push ebx
push eax
mov eax, dword [ebp + 0xc]
push eax
push esi
call edx
mov eax, esi
jmp 0x1003892e
lea eax, [esp + 0x20]
push eax
mov ecx, ebx
call fcn.10005e30
mov edi, eax
mov dword [esp + 0x78], 0
call fcn.100384c0
mov dword [esp + 0x78], 0xffffffff
mov edi, dword [esp + 0x20]
mov dword [esp + 0x14], eax
test edi, edi
je 0x100387fd
push 0
lea ecx, [esp + 0x2c]
call fcn.1006ea88
mov eax, dword [edi + 4]
test eax, eax
je 0x100387dd
cmp eax, 0xffffffff
jae 0x100387dd
dec eax
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
neg esi
sbb esi, esi
lea ecx, [esp + 0x28]
not esi
call fcn.1006eab0
and esi, edi
je 0x100387fd
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
cmp byte [ebp + 0x1c], 0
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x78], 1
lea esi, [esp + 0x4c]
je 0x1003884f
call fcn.10038650
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x7c], 2
call fcn.1000a250
mov byte [esp + 0x78], 1
cmp dword [esp + 0x60], 0x10
jb 0x1003887c
mov ecx, dword [esp + 0x4c]
push ecx
jmp 0x10038874
call fcn.10022270
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x7c], 3
call fcn.1000a250
mov byte [esp + 0x78], 1
cmp dword [esp + 0x60], 0x10
jb 0x1003887c
mov edx, dword [esp + 0x4c]
push edx
call fcn.100719b6
add esp, 4
cmp dword [ebx + 0x24], 0
mov edi, dword [ebx + 0x20]
mov ecx, dword [esp + 0x40]
jl 0x10038897
jg 0x1003888f
test edi, edi
je 0x10038897
cmp edi, ecx
jbe 0x10038897
sub edi, ecx
jmp 0x10038899
xor edi, edi
mov eax, dword [ebx + 0x14]
mov esi, dword [esp + 0x18]
and eax, 0x1c0
cmp eax, 0x40
je 0x100388d2
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push esi
push ecx
mov eax, edi
push edx
lea edi, [esp + 0x34]
call fcn.100386c0
mov ecx, dword [eax]
mov dword [ebp + 0xc], ecx
mov edx, dword [eax + 4]
mov ecx, dword [esp + 0x4c]
add esp, 0xc
mov dword [ebp + 0x10], edx
xor edi, edi
cmp dword [esp + 0x44], 0x10
mov eax, dword [esp + 0x30]
jae 0x100388e1
lea eax, [esp + 0x30]
mov edx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 0x10]
push ecx
push edx
lea ecx, [esp + 0x24]
push ecx
call fcn.10037e20
mov ecx, dword [eax]
mov dword [ebp + 0xc], ecx
mov eax, dword [eax + 4]
push esi
push eax
mov dword [ebp + 0x10], eax
xor edx, edx
mov eax, edi
mov edi, dword [esp + 0x3c]
push ecx
mov dword [ebx + 0x20], edx
mov dword [ebx + 0x24], edx
call fcn.100386c0
add esp, 0x1c
cmp dword [esp + 0x44], 0x10
jb 0x1003892c
mov edx, dword [esp + 0x30]
push edx
call fcn.100719b6
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.100719c1
mov esp, ebp
pop ebp
ret 0x18