Function at 0x10001000
Capabilities:
Get common file path
Link many functions at runtime
Print debug messages

Disassembly:
sub esp, 0x210
mov eax, dword [0x1000b598]
xor eax, esp
mov dword [esp + 0x20c], eax
mov eax, dword [esp + 0x220]
cmp eax, 1
push ebp
mov ebp, dword [esp + 0x21c]
push esi
push edi
mov dword [esp + 0xc], ecx
jne 0x100011ac
push 0x206
lea edx, [esp + 0x16]
push 0
push edx
mov word [esp + 0x1c], 0
call fcn.10005630
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, 0x1000c110
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10001064
lea edi, [esp + 0x10]
sub eax, edx
add edi, 0xfffffffe
jmp 0x10001080
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x10001080
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x10]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x100010a3
mov ecx, dword [0x1000d400]
lea eax, [esp + 0x10]
mov dword [edi], ecx
add eax, 0xfffffffe
mov edi, edi
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x100010c0
mov edx, dword [0x1000d3d8]
mov ecx, dword [0x1000d3dc]
mov dword [eax], edx
mov edx, dword [0x1000d3e0]
mov dword [eax + 4], ecx
mov cx, word [0x1000d3e4]
mov dword [eax + 8], edx
lea edx, [esp + 0x10]
push edx
mov word [eax + 0xc], cx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
push 0x1000d404
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10001188
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x228]
push 0
push 0
push 0x1a0
push ecx
mov ecx, dword [esp + 0x230]
push edx
push ebp
push ecx
push ebx
push 1
call eax
add esp, 0x24
test eax, eax
push esi
je 0x10001168
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x1000d40c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop edi
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.100019ee
add esp, 0x210
ret
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.100019ee
add esp, 0x210
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.100019ee
add esp, 0x210
ret
cmp eax, 2
jne 0x100012ee
push 0x206
lea edx, [esp + 0x16]
push 0
push edx
mov word [esp + 0x1c], 0
call fcn.10005630
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, 0x1000c110
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100011e7
lea edi, [esp + 0x10]
sub eax, edx
add edi, 0xfffffffe
jmp 0x10001200
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x10001200
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x10]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x10001223
mov ecx, dword [0x1000d400]
lea eax, [esp + 0x10]
mov dword [edi], ecx
add eax, 0xfffffffe
mov edi, edi
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x10001240
mov edx, dword [0x1000d3b4]
mov ecx, dword [0x1000d3b8]
mov dword [eax], edx
mov edx, dword [0x1000d3bc]
mov dword [eax + 4], ecx
mov ecx, dword [0x1000d3c0]
mov dword [eax + 8], edx
lea edx, [esp + 0x10]
push edx
mov dword [eax + 0xc], ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
push 0x1000d404
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10001188
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x228]
push 0
push 0
push 0x1a0
push ecx
mov ecx, dword [esp + 0x230]
push edx
push ebp
push ecx
push ebx
push 1
call eax
add esp, 0x24
test eax, eax
push esi
je 0x10001168
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x1000d42c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop edi
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.100019ee
add esp, 0x210
ret
cmp eax, 3
jne 0x10001440
push 0x206
lea edx, [esp + 0x16]
push 0
push edx
mov word [esp + 0x1c], 0
call fcn.10005630
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, 0x1000c110
mov edx, eax
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10001330
lea edi, [esp + 0x10]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x10001344
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x10]
add edi, 0xfffffffe
jmp 0x10001370
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x10001370
mov ecx, dword [0x1000d400]
lea eax, [esp + 0x10]
mov dword [edi], ecx
add eax, 0xfffffffe
jmp 0x10001390
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x10001390
mov edx, dword [0x1000d390]
mov ecx, dword [0x1000d394]
mov dword [eax], edx
mov edx, dword [0x1000d398]
mov dword [eax + 4], ecx
mov cx, word [0x1000d39c]
mov dword [eax + 8], edx
lea edx, [esp + 0x10]
push edx
mov word [eax + 0xc], cx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
push 0x1000d404
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10001188
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x228]
push 0
push 0
push 0x1a0
push ecx
mov ecx, dword [esp + 0x230]
push edx
push ebp
push ecx
push ebx
push 1
call eax
add esp, 0x24
test eax, eax
push esi
je 0x10001168
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x1000d458
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop edi
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.100019ee
add esp, 0x210
ret
cmp eax, 4
jne 0x10001590
push 0x206
lea edx, [esp + 0x16]
push 0
push edx
mov word [esp + 0x1c], 0
call fcn.10005630
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, 0x1000c110
mov edx, eax
jmp 0x10001480
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10001480
lea edi, [esp + 0x10]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x10001494
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x10]
add edi, 0xfffffffe
jmp 0x100014c0
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x100014c0
mov ecx, dword [0x1000d400]
lea eax, [esp + 0x10]
mov dword [edi], ecx
add eax, 0xfffffffe
jmp 0x100014e0
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x100014e0
mov edx, dword [0x1000d36c]
mov ecx, dword [0x1000d370]
mov dword [eax], edx
mov edx, dword [0x1000d374]
mov dword [eax + 4], ecx
mov cx, word [0x1000d378]
mov dword [eax + 8], edx
lea edx, [esp + 0x10]
push edx
mov word [eax + 0xc], cx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
push 0x1000d404
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10001188
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x228]
push 0
push 0
push 0x1a0
push ecx
mov ecx, dword [esp + 0x230]
push edx
push ebp
push ecx
push ebx
push 1
call eax
add esp, 0x24
test eax, eax
push esi
je 0x10001168
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x1000d478
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop edi
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.100019ee
add esp, 0x210
ret
cmp eax, 5
jne 0x1000116e
push 0x206
lea edx, [esp + 0x16]
push 0
push edx
mov word [esp + 0x1c], 0
call fcn.10005630
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, 0x1000c110
mov edx, eax
jmp 0x100015d0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100015d0
lea edi, [esp + 0x10]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x100015e4
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x10]
add edi, 0xfffffffe
jmp 0x10001610
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x10001610
mov ecx, dword [0x1000d400]
lea eax, [esp + 0x10]
mov dword [edi], ecx
add eax, 0xfffffffe
jmp 0x10001630
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x10001630
mov edx, dword [0x1000d344]
mov ecx, dword [0x1000d348]
mov dword [eax], edx
mov edx, dword [0x1000d34c]
mov dword [eax + 4], ecx
mov cx, word [0x1000d350]
mov dword [eax + 8], edx
lea edx, [esp + 0x10]
push edx
mov word [eax + 0xc], cx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
push 0x1000d404
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10001188
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x228]
push 0
push 0
push 0x1a0
push ecx
mov ecx, dword [esp + 0x230]
push edx
push ebp
push ecx
push ebx
push 1
call eax
add esp, 0x24
test eax, eax
push esi
je 0x10001168
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x1000d498
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [esp + 0x218]
pop edi
pop esi
pop ebp
xor ecx, esp
mov eax, 1
call fcn.100019ee
add esp, 0x210
ret