Function at 0x40242e
Capabilities:
Create process on windows
Get common file path

Disassembly:
push 0xd64
mov eax, 0x5bfbce
call fcn.00598f94
xor eax, eax
push 0x208
mov word [ebp - 0x494], ax
xor ebx, ebx
lea eax, [ebp - 0x492]
push ebx
push eax
mov esi, ecx
call fcn.00596530
add esp, 0xc
lea eax, [ebp - 0x494]
push eax
push str.__param
push esi
mov edi, 0x104
call fcn.00425518
add esp, 0xc
test eax, eax
je 0x4026d7
cmp word [ebp - 0x494], bx
je 0x4026d7
mov ecx, str.__flag
call fcn.004254af
cmp eax, ebx
jne 0x40266e
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp - 0x69c], ax
lea eax, [ebp - 0x69a]
push ebx
push eax
call fcn.00596530
add esp, 0xc
lea eax, [ebp - 0x69c]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4026d7
xor eax, eax
push esi
mov word [ebp - 0x284], ax
lea eax, [ebp - 0x282]
push ebx
push eax
call fcn.00596530
xor eax, eax
mov dword [ebp - 0xabc], ebx
lea edi, [ebp - 0xab8]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
lea eax, [ebp - 0xabc]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
jne 0x402555
push 0x62
mov word [ebp - 0x7c], ax
lea eax, [ebp - 0x7a]
push ebx
push eax
call fcn.00596530
add esp, 0xc
push 0x32
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0xabc]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x69c]
push eax
lea eax, [ebp - 0x284]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
jmp 0x402575
lea eax, [ebp - 0x284]
push eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push str.JZUDT
lea eax, [ebp - 0x69c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov esi, 0x63c060
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea eax, [ebp - 0x284]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push esi
lea ecx, [ebp - 0x284]
call fcn.00476205
pop ecx
test eax, eax
je 0x4026d7
xor eax, eax
push 0x40e
mov word [ebp - 0xaac], ax
lea eax, [ebp - 0xaaa]
push ebx
push eax
call fcn.00596530
add esp, 0xc
lea eax, [ebp - 0x494]
push eax
push str.__param
push 1
push str.__flag
push 1
push str.__type
push 0xd
push str.__class
lea eax, [ebp - 0x284]
push eax
push str.__s___s_d__s_d__s_d__s__s_
lea eax, [ebp - 0xaac]
push 0x207
push eax
call fcn.0058f42f
push 0x40
lea eax, [ebp - 0x58]
push ebx
push eax
call fcn.00596530
xor eax, eax
mov dword [ebp - 0xd54], ebx
lea edi, [ebp - 0xd50]
stosd dword es:[edi], eax
add esp, 0x3c
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0xd54]
push eax
lea eax, [ebp - 0x5c]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
lea eax, [ebp - 0xaac]
push eax
push ebx
mov dword [ebp - 0x5c], 0x44
mov dword [ebp - 0x30], 0x80
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4026d7
push dword [ebp - 0xd50]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xd54]
call esi
jmp 0x4026d7
call fcn.004036c2
lea esi, [ebp - 0xd44]
call fcn.0049ec8f
lea eax, [ebp - 0x494]
mov dword [ebp - 4], ebx
push eax
mov ebx, esi
call fcn.0049ed75
test eax, eax
je 0x4026c7
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
xor edi, edi
jmp 0x4026b7
lea eax, [ebp - 0xd70]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0xd70]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push edi
push edi
push edi
lea eax, [ebp - 0xd70]
push eax
call esi
test eax, eax
jne 0x40269d
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xd44]
push eax
call fcn.0049ed25
call fcn.00599017
ret