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

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x34]
mov ebp, ecx
cmp dword [edi + 4], 0
jne 0x1003b71f
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0x18
push 0
push 0xffffffffffffffff
push 0
push 0x23
mov ecx, edi
call fcn.10003bd0
mov esi, eax
test esi, esi
jle 0x1003b745
mov ebx, dword [edi]
movzx ecx, byte [ebx + esi + 1]
test byte [ecx*2 + 0x10052120], 0x1e
jne 0x1003b749
mov ebx, dword [edi]
xor esi, esi
mov eax, dword [edi + 4]
test eax, eax
js 0x1003b754
cmp esi, eax
jb 0x1003b756
mov esi, eax
mov al, byte [edi + 0xc]
mov byte [esp + 0x24], al
mov byte [esp + 0x25], 0
test esi, esi
jle 0x1003b798
lea eax, [esi + 0x10]
push eax
mov dword [esp + 0x24], eax
call dword [sym.imp.msvcrt.dll_malloc]
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
je 0x1003b798
push esi
push ebx
mov dword [esp + 0x24], esi
push eax
mov byte [eax + esi], 0
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x28]
add esp, 0xc
jmp 0x1003b7ae
xor eax, eax
mov dword [esp + 0x18], 0x1005bdb0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], eax
mov edx, dword [esp + 0x30]
lea ebx, [esp + 0x18]
test eax, eax
cmove ebx, edi
mov eax, dword [edx + 0xc]
mov dword [esp + 0x34], ebx
mov ecx, dword [eax + 8]
mov eax, dword [ecx + edx + 0x30]
add ecx, edx
mov dword [esp + 0x14], eax
mov eax, dword [edx + 0x30]
test eax, eax
je 0x1003b7dc
movzx edi, word [eax + 4]
jmp 0x1003b7de
xor edi, edi
mov edx, dword [ecx + 0x4c]
mov dword [esp + 0x10], edx
test edx, edx
je 0x1003b92d
mov esi, dword [ebp + 0x14]
lea eax, [ebp + 0x10]
cmp esi, eax
je 0x1003b92d
lea eax, [esi - 8]
neg esi
sbb esi, esi
and esi, eax
je 0x1003b92d
lea ebx, [ebx]
mov eax, dword [esp + 0x44]
cmp byte [esi + 0x34], al
jne 0x1003b914
mov ecx, dword [esi + 0x14]
mov ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + 8]
cmp dword [eax + ecx + 0x30], ebx
mov ebx, dword [esp + 0x34]
jne 0x1003b914
cmp dword [eax + ecx + 0x4c], edx
jne 0x1003b914
mov eax, dword [ecx + 0x30]
test eax, eax
je 0x1003b84f
movzx eax, word [eax + 4]
jmp 0x1003b851
xor eax, eax
cmp ax, di
jne 0x1003b914
cmp dword [esi + 0x28], 0
lea edx, [esi + 0x38]
je 0x1003b8de
mov eax, dword [ebx + 4]
cmp eax, dword [edx + 4]
jne 0x1003b910
push eax
push dword [edx]
push dword [ebx]
call dword [sym.imp.msvcrt.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x1003b910
push dword [esp + 0x3c]
mov ecx, esi
push dword [esp + 0x34]
call fcn.100184e0
mov eax, dword [esp + 0x34]
mov ebp, dword [ebx]
mov ebx, dword [ebx + 4]
mov al, byte [eax + 0xc]
mov byte [esi + 0x44], al
test ebx, ebx
jle 0x1003b96b
lea eax, [ebx + 1]
cmp dword [esi + 0x40], eax
jae 0x1003b8c4
push eax
lea ecx, [esi + 0x38]
call fcn.100035c0
test eax, eax
je 0x1003b96b
mov eax, dword [esi + 0x38]
push ebx
push ebp
mov dword [esi + 0x3c], ebx
push eax
mov byte [eax + ebx], 0
call sub.msvcrt.dll_memcpy
add esp, 0xc
jmp 0x1003b978
test di, di
je 0x1003b8f6
mov eax, dword [esp + 0x30]
push esi
push edx
push ebx
mov ecx, dword [eax + 0x30]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
jmp 0x1003b908
push 0
push 0
push 0
push 1
mov ecx, ebx
call fcn.10007f80
add esp, 0x10
test al, al
jne 0x1003b885
mov edx, dword [esp + 0x10]
mov esi, dword [esi + 0xc]
lea eax, [ebp + 0x10]
cmp esi, eax
je 0x1003b92d
lea eax, [esi - 8]
neg esi
sbb esi, esi
and esi, eax
jne 0x1003b810
cmp dword [ebp + 0x18], 0x1388
jl 0x1003ba10
mov ecx, dword [ebp + 0x10]
lea ebx, [ebp + 0x10]
cmp ecx, ebx
je 0x1003ba0c
lea eax, [ecx - 8]
neg ecx
sbb ecx, ecx
and ecx, eax
je 0x1003ba0c
mov edx, dword [ecx + 8]
cmp edx, ebx
je 0x1003b9bf
mov esi, edx
lea eax, [edx - 8]
neg esi
sbb esi, esi
and esi, eax
jmp 0x1003b9c1
mov eax, dword [esi + 0x38]
mov dword [esi + 0x3c], 0
mov byte [eax], 0
mov al, byte [esp + 0x38]
mov edi, dword [esp + 0x40]
mov byte [esi + 0x24], al
test edi, edi
je 0x1003ba76
mov ecx, dword [esi + 0x78]
cmp edi, ecx
je 0x1003ba76
test ecx, ecx
je 0x1003b9ad
mov eax, dword [ecx + 4]
mov eax, dword [eax + 4]
add dword [eax + ecx + 4], 0xffffffff
jne 0x1003b9ad
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 0x78], edi
mov eax, dword [edi + 4]
mov eax, dword [eax + 4]
inc dword [eax + edi + 4]
jmp 0x1003ba76
xor esi, esi
mov eax, dword [ecx + 4]
mov eax, dword [eax + 4]
cmp dword [ecx + eax + 4], 1
jne 0x1003ba02
cmp dword [ecx + 0x10], 0
je 0x1003ba02
mov eax, dword [ecx + 0xc]
mov dword [eax], edx
mov dword [edx + 4], eax
mov dword [ecx + 0x10], 0
dec dword [ebp + 0x18]
mov eax, dword [ecx + 4]
mov eax, dword [eax + 4]
add dword [eax + ecx + 4], 0xffffffff
jne 0x1003ba02
mov eax, dword [ecx]
push 1
call dword [eax]
cmp dword [ebp + 0x18], 0x1388
jl 0x1003ba0c
mov ecx, esi
test esi, esi
jne 0x1003b957
mov ebx, dword [esp + 0x34]
mov eax, dword [0x1005be08]
mov esi, 1
lock xadd dword [eax + 0x1cb8], esi
inc esi
push 0x80
call dword [sym.imp.msvcrt.dll_malloc]
add esp, 4
test eax, eax
je 0x1003ba74
push ecx
push dword [esp + 0x44]
mov ecx, eax
push dword [esp + 0x40]
push dword [esp + 0x48]
push dword [esp + 0x54]
push ebx
push esi
push dword [esp + 0x4c]
call fcn.1003ae80
mov esi, eax
test esi, esi
je 0x1003ba76
mov eax, dword [ebp + 0x14]
lea edx, [ebp + 0x10]
lea ecx, [esi + 8]
mov dword [ecx], edx
mov dword [ecx + 4], eax
mov dword [eax], ecx
mov dword [edx + 4], ecx
mov dword [ecx + 8], edx
inc dword [edx + 8]
jmp 0x1003ba76
xor esi, esi
mov eax, dword [esp + 0x18]
cmp eax, 0x1005bdb0
je 0x1003ba8b
push eax
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0x18