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

Disassembly:
sub esp, 0x684
mov eax, dword [0x1003ec80]
xor eax, esp
mov dword [esp + 0x680], eax
mov eax, dword [esp + 0x688]
mov ecx, dword [esp + 0x694]
push ebx
mov ebx, dword [esp + 0x6a0]
mov dword [esp + 0x18], eax
mov dword [esp + 4], ecx
push esi
mov esi, dword [esp + 0x698]
push edi
mov edi, dword [esp + 0x698]
cmp ebx, 5
ja case.default.0x10017f1b
jmp dword [ebx*4 + 0x10018374]
push eax
call fcn.10014400
test eax, eax
jne 0x10017f36
mov eax, 0xfffffbb0
jmp 0x1001819f
push ebp
push edi
push eax
call fcn.10014530
mov ebp, eax
mov dword [esp + 0x20], ebp
test ebp, ebp
jne 0x10017f52
mov eax, 0xfffffae2
jmp 0x1001819e
test ebx, ebx
je 0x100181ca
cmp ebx, 4
je 0x100181ca
push dword [esp + 0x24]
call fcn.10014400
push 1
push eax
mov dword [esp + 0x20], eax
call fcn.10013d40
mov edi, eax
test edi, edi
je 0x100181c3
mov dword [edi + 0x1c], ebx
xor ebp, ebp
mov dword [edi + 0x230], 0
xor ebx, ebx
mov dword [edi + 0x20], 0
mov dword [esp + 0x1c], 0
push 0x2a0
call fcn.1000ae30
mov esi, eax
test esi, esi
je 0x100181b9
push 0x2a0
push 0
push esi
call fcn.1002c150
mov eax, ebx
add esp, 0xc
sub eax, 0
je 0x10018031
dec eax
je 0x10018004
dec eax
jne 0x1001805c
push 0x4b0
push 0x41
lea eax, [esi + 0x1c]
mov dword [esi + 0xc], 1
push eax
push 0x10001a88
mov dword [esi + 0x14], 1
call fcn.1000a680
mov dword [esp + 0x3c], 1
jmp 0x1001805c
push 0x4b0
push 0x41
lea eax, [esi + 0x1c]
mov dword [esi + 0xc], 4
push eax
push 0x10001a7c
mov dword [esi + 0x14], 4
call fcn.1000a680
mov dword [esp + 0x3c], 1
jmp 0x1001805c
push 0x4b0
push 0x41
lea eax, [esi + 0x1c]
mov dword [esi + 0xc], 0xa
push eax
push 0x10001a60
mov dword [esi + 0x14], 0x1fe
call fcn.1000a680
mov dword [esp + 0x3c], 0xffffffdf
push 2
push pe_nt_image_headers32
lea eax, [esi + 0x9e]
mov dword [esi + 8], ebx
push eax
mov eax, dword [esp + 0x2c]
add eax, 0x26
mov dword [esi + 4], ebx
push eax
inc ebx
mov dword [esi + 0x10], 0
call fcn.1000a680
cmp dword [edi + 0x230], 0
jne 0x10018096
mov dword [edi + 0x230], esi
jmp 0x1001809c
mov eax, dword [esp + 0x1c]
mov dword [eax], esi
inc ebp
mov dword [esp + 0x1c], esi
cmp ebx, 3
jl 0x10017fa2
test ebp, ebp
jle 0x100180c1
mov eax, dword [edi + 0x230]
mov dword [edi + 0x20], ebp
mov byte [edi + 0x24], 2
mov dword [edi + 0x234], eax
call sub.KERNEL32.dll_GetCurrentProcessId
push eax
call fcn.10014440
push 0x1003d300
push dword [edi + 0xc]
lea ecx, [esp + 0x1c]
mov eax, dword [eax + 0x1c]
push ecx
push dword [esp + 0x30]
mov eax, dword [eax + 0x24]
call eax
mov esi, eax
test esi, esi
je 0x100180fc
push edi
push dword [esp + 0x1c]
call fcn.100141b0
mov eax, esi
jmp 0x1001819e
mov ecx, dword [esp + 0x20]
mov edx, 0x38
mov eax, dword [esp + 0x14]
mov dword [edi + 0x10], eax
mov eax, dword [ecx + 0x14]
mov dword [edi + 0x14], eax
mov eax, dword [ecx + 0x18]
mov ecx, dword [esp + 0x6a8]
cmp ecx, edx
mov dword [edi + 0x18], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x44], eax
mov eax, ecx
push ecx
push dword [esp + 0x14]
cmova eax, edx
mov dword [esp + 0x50], ebp
mov dword [esp + 0x48], eax
lea eax, [esp + 0x48]
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 1
mov dword [esp + 0x5c], 2
mov dword [esp + 0x60], 3
mov dword [esp + 0x64], 4
mov dword [esp + 0x68], 5
mov dword [esp + 0x6c], 6
mov dword [esp + 0x70], 7
mov dword [esp + 0x74], 8
mov dword [esp + 0x78], 9
mov dword [esp + 0x7c], 1
push edx
push eax
call fcn.10009bd0
pop ebp
mov ecx, dword [esp + 0x68c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1002b4da
add esp, 0x684
ret 0x18
push edi
push dword [esp + 0x1c]
call fcn.100141b0
mov eax, 0xfffffc0d
jmp 0x1001819e
test esi, esi
jne 0x100181d5
mov eax, 0xfffffc15
jmp 0x1001819e
push 0x10001a60
push esi
call fcn.1000bd40
test eax, eax
jne 0x100181f6
lea ecx, [eax + 0xa]
mov dword [esp + 0x3c], 0xffffffdf
mov edx, 0x1fe
jmp 0x10018236
push 0x10001a7c
push esi
call fcn.1000bd40
test eax, eax
jne 0x10018213
mov eax, 1
mov dword [esp + 0x3c], eax
lea ecx, [eax + 3]
jmp 0x10018234
push 0x10001a88
push esi
call fcn.1000bd40
test eax, eax
jne 0x10018356
mov ecx, 1
mov eax, 2
mov dword [esp + 0x3c], ecx
mov edx, ecx
test ebx, ebx
jne 0x10018270
mov dword [esp + 0x38], edx
mov edx, 0x18
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x6a8]
mov eax, ecx
cmp ecx, edx
mov dword [esp + 0x34], ebx
push ecx
push dword [esp + 0x14]
cmova eax, edx
mov dword [esp + 0x30], eax
lea eax, [esp + 0x30]
push edx
jmp 0x10018198
push 2
mov dword [esp + 0x80], eax
lea eax, [esp + 0x494]
push pe_nt_image_headers32
push eax
lea eax, [ebp + 0x26]
mov dword [esp + 0x8c], ecx
push eax
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], edx
call fcn.1000a680
lea ecx, [esp + 0x90]
mov edx, pe_nt_image_headers32
lea edi, [esp + 0x490]
mov eax, ecx
sub edi, eax
nop
lea eax, [edx + 0x7ffffefe]
test eax, eax
je 0x100182de
movzx eax, word [edi + ecx]
test ax, ax
je 0x100182de
mov word [ecx], ax
add ecx, 2
dec edx
jne 0x100182c0
jmp 0x100182e2
test edx, edx
jne 0x100182e5
sub ecx, 2
xor eax, eax
mov edx, pe_nt_image_headers32
mov word [ecx], ax
lea ecx, [esp + 0x290]
mov eax, ecx
sub esi, eax
lea ebx, [ebx]
lea eax, [edx + 0x7ffffefe]
test eax, eax
je 0x1001831e
movzx eax, word [esi + ecx]
test ax, ax
je 0x1001831e
mov word [ecx], ax
add ecx, 2
dec edx
jne 0x10018300
jmp 0x10018322
test edx, edx
jne 0x10018325
sub ecx, 2
xor eax, eax
mov edx, 0x418
mov word [ecx], ax
mov ecx, dword [esp + 0x6a8]
cmp ecx, edx
push ecx
push dword [esp + 0x14]
mov eax, ecx
cmova eax, edx
mov dword [esp + 0x80], eax
lea eax, [esp + 0x80]
push edx
jmp 0x10018198
mov eax, 0xfffffa1d
jmp 0x1001819e
mov eax, 0xfffffc17
jmp 0x1001819f
mov eax, 0xfffffc15
jmp 0x1001819f