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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c
mov eax, dword [0x100c5e00]
xor eax, esp
mov dword [esp + 0x88], eax
and dword [esp + 0x1c], 0
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov ebx, ecx
mov ecx, dword [ebp + 8]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x50], esi
mov dword [esp + 0x10], eax
mov byte [esp + 0xb], 0
push edi
mov edi, dword [ebp + 0x18]
mov dword [esp + 0x50], edi
test ebx, ebx
je 0x1009fb32
test edx, edx
je 0x1009fb32
test ecx, ecx
je 0x1009fb32
test esi, esi
je 0x1009fb32
test edi, edi
je 0x1009fb32
lea ecx, [esp + 0x28]
push ecx
lea ecx, [ebp + 0x1c]
push ecx
mov ecx, eax
call fcn.1009ee03
mov esi, eax
test esi, esi
js 0x1009fb2e
xor ebx, ebx
mov dword [esp + 0x34], ebx
xor eax, eax
inc eax
cmp ebx, dword [esp + 0x28]
jae 0x1009fb26
mov ecx, dword [esp + 0x14]
xor edi, edi
mov dword [esp + 0x24], eax
lea eax, [esp + 0x58]
push eax
push ebx
lea eax, [ebp + 0x1c]
push eax
call fcn.1009f191
mov esi, eax
test esi, esi
js 0x1009fb11
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x78]
push eax
push 0x2004
lea eax, [esp + 0x60]
push eax
call fcn.1009f26b
mov esi, eax
test esi, esi
js 0x1009fb11
cmp dword [esp + 0x78], 1
jne 0x1009fb1f
mov ecx, dword [esp + 0x80]
test ecx, ecx
jne 0x1009f905
and dword [esp + 0x18], edi
xor esi, esi
inc esi
jmp 0x1009f918
lea edx, [esp + 0x18]
call fcn.100a03cb
mov esi, eax
test esi, esi
js 0x1009fb11
cmp dword [esp + 0x18], edi
je 0x1009fb11
push dword [esp + 0x18]
push dword [esp + 0x3c]
call sub.msvcrt.dll__wcsicmp
pop ecx
pop ecx
test eax, eax
jne 0x1009faf7
and dword [esp + 0x30], edi
cmp dword [ebp + 0xc], edi
jbe 0x1009face
mov ebx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
sub eax, ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x4c], eax
mov edx, dword [esp + 0x24]
cmp edx, 1
jne 0x1009fabf
mov ecx, dword [ebx]
mov eax, dword [eax + ebx]
mov dword [esp + 0x48], ecx
xor cl, cl
mov dword [esp + 0x44], eax
mov byte [esp + 0xe], cl
test eax, eax
je 0x1009fa81
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x5c]
push eax
call fcn.1009ed4b
mov esi, eax
test esi, esi
js 0x1009fa86
xor ebx, ebx
cmp ebx, dword [esp + 0x2c]
jae 0x1009fa42
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x24]
push eax
push ebx
lea eax, [esp + 0x68]
push eax
call fcn.1009eeb4
mov esi, eax
test esi, esi
js 0x1009fa39
push dword [esp + 0x1c]
push dword [esp + 0x48]
call sub.msvcrt.dll__wcsicmp
pop ecx
pop ecx
test eax, eax
jne 0x1009f9f5
mov edi, dword [esp + 0x10]
xor esi, esi
mov ebx, dword [esp + 0x2c]
mov byte [esp + 0xe], 1
mov dword [esp + 0x10], eax
jmp 0x1009f9f9
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x1c], 0
je 0x1009fa1e
push dword [esp + 0x1c]
mov eax, dword fs:[0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
and dword [esp + 0x1c], 0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1009fa39
push eax
mov eax, dword fs:[0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
and dword [esp + 0x10], 0
inc ebx
test esi, esi
jns 0x1009f99f
cmp byte [esp + 0xe], 0
mov ebx, dword [esp + 0x20]
jne 0x1009fa56
test esi, esi
js 0x1009fa86
xor esi, esi
inc esi
xor edi, edi
test esi, esi
js 0x1009fa86
cmp esi, 1
je 0x1009fa7d
mov eax, dword [esp + 0x48]
test eax, eax
je 0x1009fa74
push edi
push eax
call sub.msvcrt.dll__wcsicmp
pop ecx
pop ecx
test eax, eax
jne 0x1009fa7d
xor eax, eax
inc eax
mov dword [esp + 0x24], eax
jmp 0x1009fa86
xor eax, eax
jmp 0x1009fa77
mov esi, 0x80070057
test edi, edi
je 0x1009fa9e
mov eax, dword fs:[0x30]
push edi
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
xor edi, edi
mov eax, dword [esp + 0x30]
add ebx, 4
inc eax
mov dword [esp + 0x20], ebx
cmp eax, dword [ebp + 0xc]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x4c]
jb 0x1009f958
mov edx, dword [esp + 0x24]
test esi, esi
js 0x1009fac8
cmp edx, 1
je 0x1009face
mov ebx, dword [esp + 0x34]
jmp 0x1009faf7
mov edx, dword [esp + 0x14]
lea esi, [esp + 0x58]
mov ecx, dword [esp + 0x54]
sub esp, 0x10
mov edi, esp
mov byte [esp + 0x1f], 1
push dword [esp + 0x60]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.1009f5ca
mov ebx, dword [esp + 0x28]
mov esi, eax
push dword [esp + 0x18]
mov eax, dword fs:[0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
and dword [esp + 0x18], 0
inc ebx
mov dword [esp + 0x34], ebx
test esi, esi
js 0x1009fb2e
jmp 0x1009f894
mov esi, 0x8007000d
jmp 0x1009fb2e
cmp byte [esp + 0xf], 0
cmove esi, eax
mov eax, esi
jmp 0x1009fb37
mov eax, 0x80070057
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10033c90
mov esp, ebp
pop ebp
ret 0x24