Function at 0x10018e42
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
push esi
push edi
mov dword [ebp - 0x260], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 0x254], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x23c], 0
mov ecx, 0x49
xor eax, eax
lea edi, [ebp - 0x238]
rep stosd dword es:[edi], eax
mov byte [ebp - 0x110], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x10f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 0
push 0x30
call fcn.10023af7
add esp, 4
push 0x10002180
call fcn.1001c255
add esp, 4
push 0x30
call fcn.10023af7
add esp, 4
push 0x10002194
push 0x100021b0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x258], eax
push 0
push 2
call dword [ebp - 0x258]
mov dword [ebp - 8], eax
push 0x30
call fcn.10023af7
add esp, 4
cmp dword [ebp - 8], 0xffffffff
jne 0x10018f1d
xor eax, eax
jmp 0x10019208
mov dword [ebp - 0x23c], 0x128
push 0x400
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x244], eax
mov eax, dword [ebp - 0x244]
mov byte [eax], 0x7d
mov dword [ebp - 0x250], 1
push 0x100021c0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x240], eax
push 0x30
call fcn.10023af7
add esp, 4
push 0x100021cc
mov ecx, dword [ebp - 0x240]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x248], eax
push 0x30
call fcn.10023af7
add esp, 4
push 0x30
call fcn.10023af7
add esp, 4
push 0x100021e0
mov edx, dword [ebp - 0x240]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x25c], eax
push 0x30
call fcn.10023af7
add esp, 4
push 0x100021f8
push 0x10002208
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x23c]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [ebp - 4]
test eax, eax
je 0x100191cf
push 0x30
call fcn.10023af7
add esp, 4
mov edx, dword [ebp - 0x234]
push edx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x254], eax
push 0x30
call fcn.10023af7
add esp, 4
cmp dword [ebp - 0x234], 0
je 0x100191b6
cmp dword [ebp - 0x234], 4
je 0x100191b6
cmp dword [ebp - 0x234], 8
je 0x100191b6
push 0x30
call fcn.10023af7
add esp, 4
lea eax, [ebp - 0x114]
push eax
push 4
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x254]
push edx
call dword [ebp - 0x248]
push 0x30
call fcn.10023af7
add esp, 4
push 0x104
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x254]
push edx
call dword [ebp - 0x25c]
push 0x30
call fcn.10023af7
add esp, 4
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esi + eax + 6]
mov dword [ebp - 0x24c], edx
mov eax, dword [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_LocalSize]
mov ecx, dword [ebp - 0x250]
add ecx, dword [ebp - 0x24c]
cmp eax, ecx
jae 0x100190f5
push 0x42
mov edx, dword [ebp - 0x250]
add edx, dword [ebp - 0x24c]
push edx
mov eax, dword [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov dword [ebp - 0x244], eax
push 4
lea ecx, [ebp - 0x234]
push ecx
mov edx, dword [ebp - 0x244]
add edx, dword [ebp - 0x250]
push edx
call fcn.10023b10
add esp, 0xc
mov eax, dword [ebp - 0x250]
add eax, 4
mov dword [ebp - 0x250], eax
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
lea edx, [ebp - 0x218]
push edx
mov eax, dword [ebp - 0x244]
add eax, dword [ebp - 0x250]
push eax
call fcn.10023b10
add esp, 0xc
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [ebp - 0x250]
lea eax, [edx + eax + 1]
mov dword [ebp - 0x250], eax
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
lea edx, [ebp - 0x110]
push edx
mov eax, dword [ebp - 0x244]
add eax, dword [ebp - 0x250]
push eax
call fcn.10023b10
add esp, 0xc
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [ebp - 0x250]
lea eax, [edx + eax + 1]
mov dword [ebp - 0x250], eax
lea ecx, [ebp - 0x23c]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [0x1002fea0]
test eax, eax
jne 0x10018fe6
push 0x42
mov eax, dword [ebp - 0x250]
push eax
mov ecx, dword [ebp - 0x244]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov dword [ebp - 0x244], eax
push 0x10002218
call fcn.1001c255
add esp, 4
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x244]
pop edi
pop esi
mov esp, ebp
pop ebp
ret