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

Disassembly:
mov eax, 0x100b718c
call fcn.100b2f10
sub esp, 0x14
and dword [ebp - 0x10], 0
push ebx
push esi
push edi
mov esi, ecx
and dword [ebp - 4], 0
cmp byte [esi + 0x60], 0
jne 0x1003e4d2
mov edi, dword [ebp + 0xc]
cmp dword [esi + 0x2c], edi
jne 0x1003e503
xor eax, eax
jmp 0x1003e4f4
mov eax, dword [esi + 0x24]
mov edi, dword [ebp + 0xc]
xor edx, edx
test eax, eax
jbe 0x1003e4ed
mov ecx, dword [esi + 0x20]
cmp dword [ecx], edi
je 0x1003e4ff
inc edx
add ecx, 4
cmp edx, eax
jb 0x1003e4e1
or eax, 0xffffffff
test eax, eax
jl 0x1003e503
mov ecx, dword [ebp + 8]
push dword [ecx + eax*4]
jmp 0x1003e6f3
mov eax, edx
jmp 0x1003e4f0
cmp byte [esi + 0x60], 0
push edi
lea ecx, [esi + 8]
jne 0x1003e514
call fcn.1003e47f
jmp 0x1003e519
call fcn.1003e45b
test eax, eax
mov dword [ebp - 0x20], eax
jge 0x1003e53b
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
test eax, eax
je 0x1003e531
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 0x80070057
jmp 0x1003e71d
mov ecx, dword [esi + 0x14]
lea eax, [ecx + eax*8]
mov cl, byte [esi + 0x60]
test cl, cl
je 0x1003e54d
mov eax, dword [eax + 4]
jmp 0x1003e54f
mov eax, dword [eax]
test cl, cl
mov dword [ebp + 0xc], eax
jne 0x1003e55f
mov ecx, dword [esi + 0x3c]
mov eax, dword [ecx + eax*4]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov edi, eax
mov eax, dword [esi + 0x6c]
shl edi, 2
mov ebx, dword [eax + edi]
mov ecx, ebx
call fcn.1003e2df
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
push 0x100c23d8
push eax
call dword [ecx]
cmp dword [ebp - 0x10], 0
je 0x1003e718
mov al, byte [esi + 0x60]
test al, al
je 0x1003e59b
mov ecx, dword [ebx + 8]
mov dword [ebp - 0x1c], ecx
jmp 0x1003e5a2
mov dword [ebp - 0x1c], 1
test al, al
je 0x1003e5ae
mov eax, dword [esi + 0x30]
mov edi, dword [eax + edi]
jmp 0x1003e5b1
mov edi, dword [ebp + 0xc]
and byte [ebp + 0xf], 0
cmp dword [ebp - 0x1c], 1
jne 0x1003e672
and dword [ebp - 0x14], 0
mov eax, dword [ebx]
lea edx, [ebp - 0x14]
push edx
push 0x100c22b8
mov ecx, dword [eax]
push eax
mov byte [ebp - 4], 1
call dword [ecx]
cmp dword [ebp - 0x14], 0
je 0x1003e65b
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
push edi
push dword [ebp + 8]
mov byte [ebp - 4], 2
call fcn.1003e4a6
mov edi, eax
test edi, edi
jne 0x1003e60c
mov eax, dword [ebp - 0x14]
push dword [ebp - 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov edi, eax
test edi, edi
je 0x1003e646
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 1
test eax, eax
je 0x1003e61d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
and byte [ebp - 4], 0
test eax, eax
je 0x1003e62e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
test eax, eax
je 0x1003e63f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, edi
jmp 0x1003e71d
mov eax, dword [ebp - 0x18]
mov byte [ebp + 0xf], 1
test eax, eax
mov byte [ebp - 4], 1
je 0x1003e65b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
and byte [ebp - 4], 0
test eax, eax
je 0x1003e66c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp byte [ebp + 0xf], 0
jne 0x1003e67c
cmp dword [ebp - 0x1c], 0
jne 0x1003e707
mov edi, dword [ebp - 0x20]
cmp dword [esi + 0x7c], edi
ja 0x1003e693
lea ebx, [esi + 0x78]
mov ecx, ebx
call fcn.1003f752
cmp dword [esi + 0x7c], edi
jbe 0x1003e687
mov eax, dword [esi + 0x78]
mov esi, dword [eax + edi*4]
cmp dword [esi + 8], 0
lea ebx, [esi + 8]
jne 0x1003e707
cmp dword [esi + 4], 0
jne 0x1003e707
push 0x18
call fcn.1000329d
xor edi, edi
pop ecx
cmp eax, edi
je 0x1003e6d2
mov dword [eax + 4], 0x100bc46c
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax], 0x100c2464
mov dword [eax + 4], 0x100c2454
mov edi, eax
push edi
mov ecx, ebx
call fcn.1004f0be
mov dword [esi + 4], edi
push dword [ebp - 0x10]
lea ecx, [edi + 0xc]
call fcn.1004f0be
and dword [edi + 0x10], 0
and dword [edi + 0x14], 0
push dword [esi + 4]
lea ecx, [ebp - 0x10]
call fcn.1004f0be
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
xor eax, eax
jmp 0x1003e71d
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
test eax, eax
je 0x1003e718
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 0x80004001
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc