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

Disassembly:
sub esp, 0x88
push ebx
push ebp
push esi
mov ebp, ecx
push edi
lea eax, [ebp + 0x1c]
push eax
lea ecx, [esp + 0x28]
call fcn.1000fcf0
xor ebx, ebx
push ebx
call fcn.10002e75
push 2
call fcn.10002e89
mov esi, dword [esp + 0xc8]
add esp, 8
cmp esi, ebx
mov dword [esp + 0x14], eax
mov word [eax], bx
je 0x100166f9
cmp dword [esi + 4], ebx
je 0x100166f9
lea ecx, [esp + 0x44]
push esi
push ecx
call fcn.1000d5b0
mov eax, dword [eax]
add esp, 8
push eax
lea ecx, [esp + 0x18]
call fcn.100035c0
mov edx, dword [esp + 0x44]
push edx
call fcn.10002e75
add esp, 4
cmp dword [0x1005c4bc], ebx
je 0x1001675b
mov eax, dword [esp + 0x14]
push 0x1002047c
push eax
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], ebx
call fcn.100035c0
push 0x1002a188
lea ecx, [esp + 0x4c]
call fcn.1000f610
mov ecx, eax
call fcn.1000f930
mov esi, dword [esp + 0x34]
push esi
mov ecx, eax
call fcn.1000f990
push esi
mov edi, eax
call fcn.10002e75
add esp, 4
mov ecx, edi
call fcn.1000f930
lea ecx, [esp + 0x44]
call fcn.1000f640
mov esi, dword [esp + 0xc0]
push ebx
call fcn.10002e75
push 2
call fcn.10002e89
mov edx, dword [esp + 0xa4]
add esp, 8
lea ecx, [esp + 0x20]
push ecx
push edx
mov ecx, ebp
mov dword [esp + 0x28], eax
mov word [eax], bx
call fcn.10011a40
mov edi, dword [esp + 0x20]
push ebx
push edi
lea eax, [esp + 0x20]
push eax
mov ecx, ebp
call fcn.100136a0
cmp dword [esp + 0x18], ebx
jne 0x100167b1
mov ecx, dword [esp + 0xc8]
mov dword [ecx], 1
push edi
jmp 0x1001705c
cmp byte [esp + 0xbc], bl
jne 0x1001681d
push ebx
lea eax, [esp + 0xa0]
lea ecx, [ebp + 0x30]
push eax
mov dword [esp + 0x38], ecx
call fcn.10010520
test eax, eax
je 0x1001681d
lea ecx, [esp + 0x9c]
push ecx
mov ecx, dword [esp + 0x34]
call fcn.10016580
cmp esi, ebx
mov edi, eax
je 0x10016fa9
cmp dword [esi + 4], ebx
je 0x10016fa9
mov edx, dword [esp + 0x14]
mov eax, dword [edi]
push 1
push edx
push eax
call fcn.1000cff0
add esp, 0xc
test eax, eax
je 0x10016fa9
lea ecx, [edi + 4]
call fcn.10011e60
mov edi, dword [esp + 0x20]
push ebx
call fcn.10002e75
push 2
call fcn.10002e89
add esp, 8
mov dword [esp + 0x4c], eax
mov word [eax], bx
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0xa0]
lea esi, [ebp + 0x30]
push ecx
mov ecx, esi
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x38], esi
call fcn.100164d0
lea ecx, [esp + 0x50]
call fcn.10011e60
mov edx, dword [esp + 0x4c]
push edx
call fcn.10002e75
add esp, 4
lea eax, [esp + 0x9c]
push eax
mov ecx, esi
call fcn.10016580
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, eax
mov dword [esp + 0x38], eax
call fcn.100035c0
lea edx, [esp + 0x70]
push 0x18
push edx
mov dword [esp + 0x48], ebx
call fcn.1000cdf0
add esp, 8
push edi
lea eax, [esp + 0x8c]
push eax
call dword [0x1005c4c8]
lea edx, [esp + 0x90]
lea ecx, [esp + 0x88]
push 8
push edx
mov dword [esp + 0x78], 0x18
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x80], ecx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
call fcn.1000cdf0
mov eax, dword [ebp + 0x3c]
mov eax, dword [eax + 0x7c]
add esp, 8
push 0x21
push 3
lea ecx, [esp + 0x98]
push ecx
lea edx, [esp + 0x7c]
push edx
push 0x100001
lea ecx, [esp + 0x54]
push ecx
call eax
mov edx, dword [esp + 0xcc]
xor esi, esi
cmp eax, ebx
mov dword [edx], eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], ebx
jne 0x10016a4e
lea eax, [esp + 0x44]
push 8
push eax
call fcn.1000cdf0
add esp, 8
mov edi, 1
cmp esi, ebx
je 0x1001694e
push esi
call fcn.10002e75
add esp, 4
push edi
call fcn.10002e89
mov ecx, dword [ebp + 0x3c]
mov edx, dword [esp + 0xc4]
add esp, 4
push ebx
push edx
push 1
mov esi, eax
mov eax, dword [ecx + 0x324]
mov ecx, dword [esp + 0xc4]
push ecx
mov ecx, dword [esp + 0x50]
push edi
push esi
lea edx, [esp + 0x5c]
push edx
push ebx
push ebx
push ebx
push ecx
mov dword [esp + 0x58], edi
call eax
cmp eax, 0xc0000004
mov edx, dword [esp + 0xcc]
mov dword [edx], eax
jne 0x100169a2
add edi, 0x100
jmp 0x10016941
cmp eax, ebx
mov dword [esp + 0x28], esi
jne 0x100169c0
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x28]
push eax
add ecx, 4
call fcn.10010470
jmp 0x100169c0
cmp esi, ebx
je 0x100169cd
push esi
call fcn.10002e75
add esp, 4
push edi
call fcn.10002e89
mov edx, dword [esp + 0xbc]
mov ecx, dword [ebp + 0x3c]
add esp, 4
push ebx
push ebx
push 1
push edx
mov edx, dword [esp + 0x50]
push edi
mov esi, eax
mov eax, dword [ecx + 0x324]
push esi
lea ecx, [esp + 0x5c]
push ecx
push ebx
push ebx
push ebx
push edx
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], edi
call eax
cmp eax, 0xc0000004
mov ecx, dword [esp + 0xcc]
mov dword [ecx], eax
jne 0x10016a1e
add edi, 0x100
jmp 0x100169c0
cmp eax, ebx
jne 0x10016a3a
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x28]
push edx
add ecx, 4
call fcn.10010470
mov edi, 1
jmp 0x100169c0
mov eax, dword [ebp + 0x3c]
mov ecx, dword [esp + 0x40]
mov edx, dword [eax + 0x194]
push ecx
call edx
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0xb8]
cmp eax, 3
je 0x10016d17
cmp eax, 0x25
je 0x10016ac1
mov ebp, dword [esp + 0x18]
mov eax, dword [ebp]
mov edx, dword [eax + 0x14]
mov ecx, ebp
call edx
test eax, eax
jne 0x10016a84
mov eax, dword [esp + 0xc8]
mov dword [eax], 1
jmp 0x10016a9a
mov ecx, dword [esp + 0xcc]
mov edx, dword [esp + 0xc8]
mov dword [ecx], 0xc000000d
mov dword [edx], ebx
cmp esi, ebx
je 0x10016aa7
push esi
call fcn.10002e75
add esp, 4
mov eax, dword [ebp]
mov edx, dword [eax + 4]
mov ecx, ebp
call edx
push edi
call fcn.10002e75
mov eax, dword [esp + 0x18]
push eax
jmp 0x10017066
push ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
call fcn.10002e75
push 2
call fcn.10002e89
mov ebp, eax
lea ecx, [esp + 0x18]
push 4
push ecx
mov dword [esp + 0x48], ebp
mov word [ebp], bx
call fcn.1000cdf0
mov edi, dword [esp + 0x28]
mov edx, dword [edi]
mov eax, dword [edx + 0x4c]
add esp, 0x10
mov ecx, edi
call eax
cmp eax, ebx
mov dword [esp + 0x3c], eax
je 0x10016cc0
jmp 0x10016b10
mov edx, dword [edi]
mov edx, dword [edx + 0x50]
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x64]
push ecx
mov ecx, edi
call edx
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
mov ebp, eax
je 0x10016b38
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
mov dword [esp + 0x10], ebx
mov ecx, dword [ebp]
cmp ecx, ebx
mov dword [esp + 0x10], ecx
je 0x10016b4d
mov eax, dword [ecx]
mov edx, dword [eax]
call edx
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x60]
cmp eax, ebx
je 0x10016b66
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x60], ebx
mov edx, dword [ecx]
mov edx, dword [edx + 0x40]
lea eax, [esp + 0x5c]
push eax
call edx
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x3c]
call fcn.100035c0
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.10002e75
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x60], ebx
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
add esp, 4
call eax
test eax, eax
mov ebp, dword [esp + 0x38]
je 0x10016cb6
mov ecx, dword [esp + 0x14]
push ecx
push ebp
call fcn.100102c0
add esp, 8
test al, al
je 0x10016cb6
xor ecx, ecx
cmp word [ebp], bx
mov eax, ebp
je 0x10016bd1
add eax, 2
add ecx, 1
cmp word [eax], bx
jne 0x10016bc6
lea esi, [ecx + ecx + 0x6e]
push esi
lea ecx, [esp + 0x2c]
call fcn.10010060
push esi
mov esi, dword [esp + 0x2c]
push esi
call fcn.1000cdf0
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov eax, dword [edx + 0x2c]
add esp, 8
call eax
test al, 0x10
mov dword [esi + 0x38], eax
jne 0x10016c3d
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov edx, dword [edx + 0x54]
lea eax, [esp + 0x64]
push eax
call edx
mov edx, dword [eax]
lea ecx, [esi + 0x28]
push ecx
push edx
call fcn.1000cf40
mov eax, dword [esp + 0x6c]
add esp, 8
cmp eax, ebx
je 0x10016c32
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x64], ebx
mov eax, 1
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], ebx
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
mov dword [esi + 0x3c], eax
push ebp
lea eax, [esi + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
call fcn.1000d080
mov ecx, eax
mov dword [esi + 0x10], ecx
mov ecx, edx
mov dword [esi + 0xc], edx
mov dword [esi + 0x14], edx
mov dword [esi + 0x1c], ecx
mov edx, eax
mov dword [esi + 8], eax
mov dword [esi + 0x18], eax
mov eax, ecx
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x38]
add ecx, 4
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], eax
call fcn.10010470
push ebp
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], ebx
call fcn.100035c0
lea edx, [esp + 0x1c]
push edx
mov eax, edx
push eax
lea ecx, [esp + 0x54]
call fcn.10011fc0
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.10002e75
add esp, 4
cmp dword [esp + 0x3c], ebx
jne 0x10016b10
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
je 0x10016cd3
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x10], ebx
push ebp
call fcn.10002e75
add esp, 4
lea ecx, [esp + 0x4c]
call fcn.10010670
lea ecx, [esp + 0x4c]
call fcn.10010670
mov eax, dword [esp + 0x4c]
cmp eax, ebx
je 0x10016f92
lea ebx, [ebx]
mov ebp, dword [eax + 4]
push eax
call fcn.10002e75
add esp, 4
cmp ebp, ebx
mov eax, ebp
jne 0x10016d00
jmp 0x10016f92
push ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
call fcn.10002e75
push 2
call fcn.10002e89
mov ebp, eax
lea ecx, [esp + 0x18]
push 4
push ecx
mov dword [esp + 0x4c], ebp
mov word [ebp], bx
call fcn.1000cdf0
mov edi, dword [esp + 0x28]
mov edx, dword [edi]
mov eax, dword [edx + 0x4c]
add esp, 0x10
mov ecx, edi
call eax
cmp eax, ebx
mov dword [esp + 0x38], eax
je 0x10016f44
mov edi, edi
mov edx, dword [edi]
mov edx, dword [edx + 0x50]
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x6c]
push ecx
mov ecx, edi
call edx
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
mov ebp, eax
je 0x10016d88
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
mov dword [esp + 0x10], ebx
mov ecx, dword [ebp]
cmp ecx, ebx
mov dword [esp + 0x10], ecx
je 0x10016d9d
mov eax, dword [ecx]
mov edx, dword [eax]
call edx
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x68]
cmp eax, ebx
je 0x10016db6
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x68], ebx
mov edx, dword [ecx]
mov edx, dword [edx + 0x40]
lea eax, [esp + 0x6c]
push eax
call edx
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x40]
call fcn.100035c0
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.10002e75
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x70], ebx
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
add esp, 4
call eax
test eax, eax
mov ebp, dword [esp + 0x3c]
je 0x10016f3a
mov ecx, dword [esp + 0x14]
push ecx
push ebp
call fcn.100102c0
add esp, 8
test al, al
je 0x10016f3a
movzx edi, word [ebp]
xor edx, edx
cmp di, bx
mov eax, ebp
je 0x10016e2b
lea esp, [esp]
add eax, 2
add edx, 1
cmp word [eax], bx
jne 0x10016e20
xor ecx, ecx
cmp di, bx
mov eax, ebp
je 0x10016e3f
add eax, 2
add ecx, 1
cmp word [eax], bx
jne 0x10016e34
cmp esi, ebx
lea edi, [ecx + edx]
lea edi, [edi + edi + 0x60]
je 0x10016e53
push esi
call fcn.10002e75
add esp, 4
push edi
call fcn.10002e89
mov esi, eax
push edi
push esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], edi
call fcn.1000cdf0
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x2c]
add esp, 0xc
call eax
test al, 0x10
mov dword [esi + 0x38], eax
jne 0x10016ebd
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov edx, dword [edx + 0x54]
lea eax, [esp + 0x44]
push eax
call edx
mov edx, dword [eax]
lea ecx, [esi + 0x28]
push ecx
push edx
call fcn.1000cf40
mov eax, dword [esp + 0x4c]
add esp, 8
cmp eax, ebx
je 0x10016eb2
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x44], ebx
mov eax, 1
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], ebx
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
mov dword [esi + 0x3c], eax
push ebp
lea eax, [esi + 0x5e]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
call fcn.1000d080
mov ecx, eax
mov dword [esi + 0x10], ecx
mov ecx, edx
mov dword [esi + 0xc], edx
mov dword [esi + 0x14], edx
mov dword [esi + 0x1c], ecx
mov edx, eax
mov dword [esi + 8], eax
mov dword [esi + 0x18], eax
mov eax, ecx
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x38]
add ecx, 4
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], eax
call fcn.10010470
push ebp
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], ebx
call fcn.100035c0
lea edx, [esp + 0x1c]
push edx
mov eax, edx
push eax
lea ecx, [esp + 0x54]
call fcn.10011fc0
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.10002e75
mov edi, dword [esp + 0x1c]
add esp, 4
cmp dword [esp + 0x38], ebx
jne 0x10016d60
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
je 0x10016f57
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x10], ebx
push ebp
call fcn.10002e75
add esp, 4
lea ecx, [esp + 0x4c]
call fcn.10010670
lea ecx, [esp + 0x4c]
call fcn.10010670
mov eax, dword [esp + 0x4c]
cmp eax, ebx
je 0x10016f92
lea ebx, [ebx]
mov ebp, dword [eax + 4]
push eax
call fcn.10002e75
add esp, 4
cmp ebp, ebx
mov eax, ebp
jne 0x10016f80
cmp esi, ebx
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 4]
mov dword [eax + 0xc], ecx
je 0x10016fa9
push esi
call fcn.10002e75
add esp, 4
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x9c]
push edx
call fcn.10016580
mov esi, eax
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x10016fd2
mov eax, dword [esp + 0xcc]
mov dword [eax], 0xc000000f
jmp 0x10017043
cmp byte [esp + 0xc4], bl
je 0x10016fde
mov dword [esi + 0xc], eax
mov ebp, dword [esi + 0xc]
cmp ebp, ebx
jne 0x10016ff4
mov eax, dword [esp + 0xcc]
mov dword [eax], reloc.OLEAUT32.dll_SysStringLen
jmp 0x10017043
mov eax, dword [ebp + 0xc]
cmp dword [esp + 0xb4], eax
jae 0x1001700f
mov eax, dword [esp + 0xcc]
mov dword [eax], 0xc0000004
jmp 0x10017043
mov ecx, dword [esp + 0xb0]
push eax
mov eax, dword [ebp + 8]
push eax
push ecx
call fcn.1000ce10
mov edx, dword [ebp + 0xc]
mov eax, dword [esp + 0xb8]
mov dword [eax + 4], edx
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx + 4]
mov eax, dword [esp + 0xd8]
mov dword [esi + 0xc], edx
add esp, 0xc
mov dword [eax], ebx
mov ecx, dword [esp + 0xc8]
mov dword [ecx], ebx
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x20]
push ecx
call fcn.10002e75
mov edx, dword [esp + 0x18]
push edx
call fcn.10002e75
add esp, 8
lea ecx, [esp + 0x24]
call fcn.1000fd10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret 0x34