Function at 0x100398f0
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 0x1003990f
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.10003b90
mov esi, eax
test esi, esi
jle 0x10039935
mov ebx, dword [edi]
movzx ecx, byte [ebx + esi + 1]
test byte [ecx*2 + 0x10050110], 0x1e
jne 0x10039939
mov ebx, dword [edi]
xor esi, esi
mov eax, dword [edi + 4]
test eax, eax
js 0x10039944
cmp esi, eax
jb 0x10039946
mov esi, eax
mov al, byte [edi + 0xc]
mov byte [esp + 0x24], al
mov byte [esp + 0x25], 0
test esi, esi
jle 0x10039988
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 0x10039988
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 0x1003999e
xor eax, eax
mov dword [esp + 0x18], 0x10059da0
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 0x100399cc
movzx edi, word [eax + 4]
jmp 0x100399ce
xor edi, edi
mov edx, dword [ecx + 0x3c]
mov dword [esp + 0x10], edx
test edx, edx
je 0x10039b1d
mov esi, dword [ebp + 0x14]
lea eax, [ebp + 0x10]
cmp esi, eax
je 0x10039b1d
lea eax, [esi - 8]
neg esi
sbb esi, esi
and esi, eax
je 0x10039b1d
lea ebx, [ebx]
mov eax, dword [esp + 0x44]
cmp byte [esi + 0x34], al
jne 0x10039b04
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 0x10039b04
cmp dword [eax + ecx + 0x3c], edx
jne 0x10039b04
mov eax, dword [ecx + 0x30]
test eax, eax
je 0x10039a3f
movzx eax, word [eax + 4]
jmp 0x10039a41
xor eax, eax
cmp ax, di
jne 0x10039b04
cmp dword [esi + 0x28], 0
lea edx, [esi + 0x38]
je 0x10039ace
mov eax, dword [ebx + 4]
cmp eax, dword [edx + 4]
jne 0x10039b00
push eax
push dword [edx]
push dword [ebx]
call dword [sym.imp.msvcrt.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x10039b00
push dword [esp + 0x3c]
mov ecx, esi
push dword [esp + 0x34]
call fcn.10017710
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 0x10039b5b
lea eax, [ebx + 1]
cmp dword [esi + 0x40], eax
jae 0x10039ab4
push eax
lea ecx, [esi + 0x38]
call fcn.10003580
test eax, eax
je 0x10039b5b
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 0x10039b68
test di, di
je 0x10039ae6
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 0x10039af8
push 0
push 0
push 0
push 1
mov ecx, ebx
call fcn.10007a10
add esp, 0x10
test al, al
jne 0x10039a75
mov edx, dword [esp + 0x10]
mov esi, dword [esi + 0xc]
lea eax, [ebp + 0x10]
cmp esi, eax
je 0x10039b1d
lea eax, [esi - 8]
neg esi
sbb esi, esi
and esi, eax
jne 0x10039a00
cmp dword [ebp + 0x18], 0x1388
jl 0x10039c00
mov ecx, dword [ebp + 0x10]
lea ebx, [ebp + 0x10]
cmp ecx, ebx
je 0x10039bfc
lea eax, [ecx - 8]
neg ecx
sbb ecx, ecx
and ecx, eax
je 0x10039bfc
mov edx, dword [ecx + 8]
cmp edx, ebx
je 0x10039baf
mov esi, edx
lea eax, [edx - 8]
neg esi
sbb esi, esi
and esi, eax
jmp 0x10039bb1
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 0x10039c66
mov ecx, dword [esi + 0x78]
cmp edi, ecx
je 0x10039c66
test ecx, ecx
je 0x10039b9d
mov eax, dword [ecx + 4]
mov eax, dword [eax + 4]
add dword [eax + ecx + 4], 0xffffffff
jne 0x10039b9d
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 0x10039c66
xor esi, esi
mov eax, dword [ecx + 4]
mov eax, dword [eax + 4]
cmp dword [ecx + eax + 4], 1
jne 0x10039bf2
cmp dword [ecx + 0x10], 0
je 0x10039bf2
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 0x10039bf2
mov eax, dword [ecx]
push 1
call dword [eax]
cmp dword [ebp + 0x18], 0x1388
jl 0x10039bfc
mov ecx, esi
test esi, esi
jne 0x10039b47
mov ebx, dword [esp + 0x34]
mov eax, dword [0x10059df0]
mov esi, 1
lock xadd dword [eax + 0x1ca8], esi
inc esi
push 0x80
call dword [sym.imp.msvcrt.dll_malloc]
add esp, 4
test eax, eax
je 0x10039c64
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.10039070
mov esi, eax
test esi, esi
je 0x10039c66
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 0x10039c66
xor esi, esi
mov eax, dword [esp + 0x18]
cmp eax, 0x10059da0
je 0x10039c7b
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