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

Disassembly:
mov eax, dword [esp + 0x14]
sub esp, 0x4c
push ebx
mov ebx, dword [eax + 0x20]
test ebx, ebx
push ebp
push esi
push edi
je 0x10037e79
mov edi, dword [esp + 0x60]
lea ebx, [ebx]
movzx edx, byte [ebx + 8]
mov ecx, dword [esp + 0x64]
cmp edx, ecx
jne 0x10037e6e
movzx eax, byte [ebx + 9]
cmp eax, dword [esp + 0x6c]
jne 0x10037e6e
mov eax, dword [ebx + 0x1c]
cmp eax, dword [ebx + 0x20]
je 0x10037cc4
mov edx, dword [edi]
mov edx, dword [edx + 4]
cmp eax, dword [edx + 0x2c]
jne 0x10037e6e
cmp ecx, 0x64
jne 0x10037ce5
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x10037ce5
push eax
mov eax, dword [esp + 0x6c]
call fcn.10007020
add esp, 4
test eax, eax
je 0x10037e6e
mov ecx, dword [edi + 0xac]
mov eax, ecx
test eax, eax
je 0x10037d01
cmp ebx, dword [eax + 0x14]
je 0x10037e6e
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x10037cf1
mov edx, dword [esp + 0x78]
mov esi, dword [edi + 0xc]
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x24], edx
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0xb0]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ecx
lea edx, [esp + 0x1c]
mov dword [edi + 0xac], edx
mov ecx, dword [ebx]
mov dword [esp + 0x38], edi
mov dword [edi + 0xb0], ecx
mov ebp, dword [esi + 0x1c]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x20]
cmp ebp, eax
lea edx, [ebp + 1]
mov dword [esi + 0x1c], edx
jl 0x10037da0
mov ecx, dword [esi + 0x24]
lea eax, [eax + eax + 0xa]
mov dword [esi + 0x20], eax
add eax, eax
add eax, eax
push eax
push ecx
call fcn.10010930
add esp, 8
mov dword [esi + 0x24], eax
mov esi, dword [esi + 0x24]
test esi, esi
je 0x10037dae
mov dword [esi + ebp*4], 0xffffffff
mov edx, dword [ebx + 0xc]
or eax, 0xffffffff
sub eax, ebp
push edx
mov dword [esp + 0x14], eax
call fcn.10019660
mov esi, eax
add esp, 4
test esi, esi
je 0x10037e1b
movzx ebp, byte [esp + 0x4d]
lea eax, [esp + 0x38]
push eax
push fcn.10023290
push esi
mov byte [esp + 0x59], 0
call fcn.1000a170
add esp, 0xc
cmp dword [esp + 0x48], 0
jle 0x10037df2
or word [esi + 2], 8
cmp byte [esp + 0x4d], 0
je 0x10037e00
or word [esi + 2], 2
jmp 0x10037e09
test ebp, ebp
je 0x10037e09
mov byte [esp + 0x4d], 1
mov cl, byte [esi + 2]
and cl, 8
xor eax, eax
cmp cl, 8
sete al
test eax, eax
jne 0x10037e83
mov ebp, dword [esp + 0x10]
push 1
push ebp
push esi
push edi
call fcn.100245a0
push esi
call fcn.1000d3b0
mov edx, dword [esp + 0x90]
mov eax, dword [ebx + 0x24]
push edx
call fcn.10037aa0
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x2c]
mov dword [edi + 0xac], eax
mov dword [edi + 0xb0], ecx
mov ecx, dword [edi + 0xc]
mov eax, dword [ecx + 0x24]
add esp, 0x18
test eax, eax
je 0x10037e6e
mov ecx, dword [ecx + 0x10]
lea edx, [ebp*4 + 4]
sub eax, edx
mov dword [eax], ecx
mov ebx, dword [ebx + 0x28]
test ebx, ebx
jne 0x10037c90
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x4c
ret
mov edx, dword [esp + 0x34]
push esi
mov dword [edi + 0xac], edx
call fcn.1000d3b0
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x4c
ret