Function at 0x402d50
Capabilities:
Create process on windows
Get common file path
Set current directory

Disassembly:
push 0x3fc
mov eax, 0x4438c8
call fcn.004342a8
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2f8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2fc], eax
mov eax, dword [ebp + 0x10]
xor esi, esi
push 0x208
mov dword [ebp - 0x320], eax
lea eax, [ebp - 0x21e]
push esi
mov dword [ebp - 0x2e8], esi
push eax
mov ebx, ecx
mov word [ebp - 0x220], si
call fcn.004324e0
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp eax, esi
jbe 0x402dbc
mov word [ebp - 0x18], si
jmp 0x402dc3
mov word [ebp - 0x220], si
mov dword [ebp - 0x318], esi
mov dword [ebp - 0x314], esi
mov dword [ebp - 0x310], esi
lea eax, [ebp - 0x31c]
push eax
push 0x3b
mov dword [ebp - 4], esi
call fcn.0040d70d
pop ecx
pop ecx
lea eax, [ebp - 0x31c]
call fcn.00403eb7
test eax, eax
je 0x403638
and dword [ebp - 0x2f4], 0
test eax, eax
jbe 0x403621
push dword [ebp - 0x2f4]
lea esi, [ebp - 0x31c]
call fcn.00403ecd
lea esi, [ebp - 0x2ac]
call fcn.00403f4c
mov edi, esi
lea ecx, [ebp - 0x340]
mov byte [ebp - 4], 1
call fcn.0042a926
push 0xffffffffffffffff
mov ecx, esi
push ecx
xor ebx, ebx
mov byte [ebp - 4], 2
call fcn.00401313
push ebx
push 1
lea esi, [ebp - 0x340]
mov byte [ebp - 4], 1
call fcn.004012b5
push 0x446dfc
mov eax, edi
call fcn.0040befb
cmp dword [ebp - 0x298], ebx
pop ecx
je 0x4035f3
push 7
pop edi
mov dword [ebp - 0x2b0], edi
mov dword [ebp - 0x2b4], ebx
mov word [ebp - 0x2c4], bx
mov dword [ebp - 0x308], ebx
mov dword [ebp - 0x304], ebx
mov dword [ebp - 0x300], ebx
lea eax, [ebp - 0x2ac]
push eax
lea ecx, [ebp - 0x30c]
mov byte [ebp - 4], 4
mov byte [ebp - 0x2e9], bl
call fcn.00403dc9
test al, al
jne 0x402f27
mov esi, dword [ebp - 0x2f8]
cmp dword [esi + 0x18], 8
jb 0x402ecb
mov eax, dword [esi + 4]
jmp 0x402ece
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea eax, [ebp - 0x2ac]
push eax
mov eax, esi
call fcn.00402cc2
cmp al, bl
mov byte [ebp - 0x2e9], al
jne 0x4035da
lea eax, [ebp - 0x340]
call fcn.0040ca5e
push 0xffffffffffffffff
lea ecx, [ebp - 0x2c8]
push ecx
xor ebx, ebx
mov byte [ebp - 4], 5
call fcn.00401313
push ebx
push 1
lea esi, [ebp - 0x340]
mov byte [ebp - 4], 4
call fcn.004012b5
jmp 0x4034f8
push ebx
lea esi, [ebp - 0x30c]
call fcn.00403ecd
lea esi, [ebp - 0x274]
call fcn.00403f4c
push 0x5c
push 0x2f
call fcn.0040be6e
pop ecx
pop ecx
mov dword [ebp - 0x240], edi
mov dword [ebp - 0x244], ebx
mov word [ebp - 0x254], bx
xor esi, esi
inc esi
lea eax, [ebp - 0x30c]
mov byte [ebp - 4], 7
mov dword [ebp - 0x2f0], esi
call fcn.00403eb7
cmp eax, esi
jbe 0x403006
mov dword [ebp - 0x324], 0x20
push dword [ebp - 0x2f0]
lea esi, [ebp - 0x30c]
call fcn.00403ecd
mov esi, eax
push 1
lea eax, [ebp - 0x324]
push eax
xor eax, eax
mov ecx, esi
call fcn.004040ca
cmp eax, 0xffffffff
je 0x402fdd
mov edi, 0x446e08
push edi
lea eax, [ebp - 0x258]
push eax
call fcn.00403f6b
push 0xffffffffffffffff
mov eax, esi
push ebx
lea esi, [ebp - 0x258]
call fcn.00404421
push edi
mov eax, esi
push eax
call fcn.00403f6b
jmp 0x402fed
push 0xffffffffffffffff
mov eax, esi
push ebx
lea esi, [ebp - 0x258]
call fcn.00404421
inc dword [ebp - 0x2f0]
lea eax, [ebp - 0x30c]
call fcn.00403eb7
cmp dword [ebp - 0x2f0], eax
jb 0x402f86
lea esi, [ebp - 0x274]
call fcn.0040cc2a
mov byte [ebp - 0x2ea], al
mov eax, dword [ebp - 0x2f8]
lea esi, [ebp - 0x23c]
call fcn.00403f4c
cmp byte [ebp - 0x2ea], bl
mov byte [ebp - 4], 8
jne 0x403099
lea eax, [ebp - 0x274]
push eax
push dword [ebp - 0x2f8]
lea ebx, [ebp - 0x2e4]
call fcn.0040cb76
mov eax, ebx
push eax
mov byte [ebp - 4], 9
call fcn.0040d0fe
add esp, 0xc
test al, al
je 0x403084
push 0xffffffffffffffff
lea eax, [ebp - 0x274]
push eax
xor ebx, ebx
lea eax, [ebp - 0x2e4]
call fcn.00401313
mov eax, esi
push eax
lea edi, [ebp - 0x274]
call fcn.0040ba1c
pop ecx
push 0
push 1
lea esi, [ebp - 0x2e4]
mov byte [ebp - 4], 8
call fcn.004012b5
xor ebx, ebx
lea ecx, [ebp - 0x274]
lea edi, [ebp - 0x290]
call fcn.0040d5b5
mov eax, 0x446e0c
lea ecx, [ebp - 0x340]
mov byte [ebp - 4], 0xa
mov byte [ebp - 0x2ea], bl
call fcn.00401221
mov byte [ebp - 4], 0xb
or dword [ebp - 0x2e8], 1
lea eax, [ebp - 0x340]
mov ecx, edi
call fcn.0040bd5a
test eax, eax
je 0x403207
mov eax, str..com
lea ecx, [ebp - 0x3ec]
call fcn.00401221
mov dword [ebp - 4], 0xc
or dword [ebp - 0x2e8], 2
lea eax, [ebp - 0x3ec]
mov ecx, edi
call fcn.0040bd5a
test eax, eax
je 0x403207
mov eax, str..msi
lea ecx, [ebp - 0x408]
call fcn.00401221
mov dword [ebp - 4], 0xd
or dword [ebp - 0x2e8], 4
lea eax, [ebp - 0x408]
mov ecx, edi
call fcn.0040bd5a
test eax, eax
je 0x403207
mov eax, str..vbs
lea ecx, [ebp - 0x3d0]
call fcn.00401221
mov dword [ebp - 4], 0xe
or dword [ebp - 0x2e8], 8
lea eax, [ebp - 0x3d0]
mov ecx, edi
call fcn.0040bd5a
test eax, eax
je 0x403207
mov eax, 0x446e3c
lea ecx, [ebp - 0x3b4]
call fcn.00401221
push 0x10
pop esi
mov dword [ebp - 4], 0xf
or dword [ebp - 0x2e8], esi
lea eax, [ebp - 0x3b4]
mov ecx, edi
call fcn.0040bd5a
test eax, eax
je 0x403207
mov eax, str..cmd
lea ecx, [ebp - 0x398]
call fcn.00401221
mov dword [ebp - 4], esi
or dword [ebp - 0x2e8], 0x20
lea eax, [ebp - 0x398]
mov ecx, edi
call fcn.0040bd5a
test eax, eax
je 0x403207
mov eax, str..bat
lea ecx, [ebp - 0x2e4]
call fcn.00401221
or dword [ebp - 0x2e8], 0x40
lea eax, [ebp - 0x2e4]
mov ecx, edi
call fcn.0040bd5a
test eax, eax
mov byte [ebp - 0x2eb], bl
jne 0x40320e
mov byte [ebp - 0x2eb], 1
test byte [ebp - 0x2e8], 0x40
je 0x40322c
and dword [ebp - 0x2e8], 0xffffffbf
push ebx
push 1
lea esi, [ebp - 0x2e4]
call fcn.004012b5
test byte [ebp - 0x2e8], 0x20
je 0x40324a
and dword [ebp - 0x2e8], 0xffffffdf
push ebx
push 1
lea esi, [ebp - 0x398]
call fcn.004012b5
test byte [ebp - 0x2e8], 0x10
je 0x403268
and dword [ebp - 0x2e8], 0xffffffef
push ebx
push 1
lea esi, [ebp - 0x3b4]
call fcn.004012b5
test byte [ebp - 0x2e8], 8
je 0x403286
and dword [ebp - 0x2e8], 0xfffffff7
push ebx
push 1
lea esi, [ebp - 0x3d0]
call fcn.004012b5
test byte [ebp - 0x2e8], 4
je 0x4032a4
and dword [ebp - 0x2e8], 0xfffffffb
push ebx
push 1
lea esi, [ebp - 0x408]
call fcn.004012b5
test byte [ebp - 0x2e8], 2
je 0x4032c2
and dword [ebp - 0x2e8], 0xfffffffd
push ebx
push 1
lea esi, [ebp - 0x3ec]
call fcn.004012b5
mov dword [ebp - 4], 0xa
test byte [ebp - 0x2e8], 1
je 0x4032e7
and dword [ebp - 0x2e8], 0xfffffffe
push ebx
push 1
lea esi, [ebp - 0x340]
call fcn.004012b5
cmp byte [ebp - 0x2eb], bl
je 0x4032f6
mov byte [ebp - 0x2ea], 1
cmp byte [ebp + 0x14], bl
je 0x403422
cmp byte [ebp - 0x2ea], bl
je 0x403422
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x37c]
push ebx
push eax
call fcn.004324e0
mov eax, dword [ebp - 0x2fc]
add esp, 0xc
cmp dword [ebp - 0x25c], 8
mov dword [ebp - 0x374], eax
mov eax, dword [ebp - 0x270]
mov dword [ebp - 0x37c], esi
mov dword [ebp - 0x378], 0x540
mov dword [ebp - 0x370], ebx
jae 0x403356
lea eax, [ebp - 0x270]
cmp dword [ebp - 0x224], 8
mov dword [ebp - 0x36c], eax
mov eax, dword [ebp - 0x238]
jae 0x403371
lea eax, [ebp - 0x238]
cmp dword [ebp - 0x244], ebx
mov dword [ebp - 0x364], eax
jne 0x403387
mov dword [ebp - 0x368], ebx
jmp 0x4033a2
cmp dword [ebp - 0x240], 8
mov eax, dword [ebp - 0x254]
jae 0x40339c
lea eax, [ebp - 0x254]
mov dword [ebp - 0x368], eax
lea eax, [ebp - 0x37c]
push eax
mov dword [ebp - 0x360], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x4033f0
lea eax, [ebp - 0x340]
call fcn.0040ca5e
push 0xffffffffffffffff
lea ecx, [ebp - 0x2c8]
push ecx
xor ebx, ebx
mov byte [ebp - 4], 0x11
call fcn.00401313
push ebx
push 1
lea esi, [ebp - 0x340]
call fcn.004012b5
mov byte [ebp - 0x2e9], bl
cmp dword [ebp - 0x344], ebx
je 0x4034bd
push 0xffffffffffffffff
push dword [ebp - 0x344]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x344]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x2e9], 1
jmp 0x4034bd
cmp dword [ebp - 0x244], ebx
jne 0x40342e
xor edx, edx
jmp 0x403443
cmp dword [ebp - 0x240], 8
mov edx, dword [ebp - 0x254]
jae 0x403443
lea edx, [ebp - 0x254]
cmp dword [ebp - 0x224], 8
mov ecx, dword [ebp - 0x238]
jae 0x403458
lea ecx, [ebp - 0x238]
cmp dword [ebp - 0x25c], 8
mov eax, dword [ebp - 0x270]
jae 0x40346d
lea eax, [ebp - 0x270]
push 1
push ecx
push edx
push eax
push 0x446d9c
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
seta byte [ebp - 0x2e9]
cmp byte [ebp - 0x2e9], bl
jne 0x4034bd
lea eax, [ebp - 0x340]
call fcn.0040ca5e
push 0xffffffffffffffff
lea ecx, [ebp - 0x2c8]
push ecx
xor ebx, ebx
mov byte [ebp - 4], 0x12
call fcn.00401313
push ebx
push 1
lea esi, [ebp - 0x340]
call fcn.004012b5
xor edi, edi
push ebx
inc edi
push edi
lea esi, [ebp - 0x290]
call fcn.004012b5
push ebx
push edi
lea esi, [ebp - 0x23c]
call fcn.004012b5
push ebx
push edi
lea esi, [ebp - 0x258]
call fcn.004012b5
push ebx
push edi
lea esi, [ebp - 0x274]
mov byte [ebp - 4], 4
call fcn.004012b5
cmp byte [ebp - 0x2e9], bl
jne 0x4035da
cmp dword [ebp - 0x294], 8
mov eax, dword [ebp - 0x2a8]
jae 0x403519
lea eax, [ebp - 0x2a8]
push eax
push 0x527f
lea ecx, [ebp - 0x23c]
call fcn.00402c90
lea eax, [ebp - 0x290]
push 0x507e
push eax
mov byte [ebp - 4], 0x13
call fcn.00402c73
add esp, 0x10
mov byte [ebp - 4], 0x14
cmp dword [ebp - 0x2b4], ebx
je 0x403573
push 0x446e5c
lea eax, [ebp - 0x23c]
push eax
call fcn.00403f6b
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x2c8]
lea esi, [ebp - 0x23c]
call fcn.00404421
lea eax, [ebp - 0x23c]
push eax
mov eax, dword [ebp - 0x320]
call fcn.00403eec
cmp dword [ebp - 0x278], 8
mov ecx, dword [ebp - 0x28c]
jae 0x40359a
lea ecx, [ebp - 0x28c]
cmp dword [ebp - 0x224], 8
mov eax, dword [ebp - 0x238]
jae 0x4035af
lea eax, [ebp - 0x238]
push ebx
push ecx
push eax
push dword [ebp - 0x2fc]
call dword [sym.imp.USER32.dll_MessageBoxW]
push ebx
push 1
lea esi, [ebp - 0x290]
call fcn.004012b5
push ebx
push 1
lea esi, [ebp - 0x23c]
call fcn.004012b5
lea esi, [ebp - 0x30c]
call fcn.00403e5e
push ebx
push 1
lea esi, [ebp - 0x2c8]
call fcn.004012b5
push ebx
push 1
lea esi, [ebp - 0x2ac]
mov byte [ebp - 4], bl
call fcn.004012b5
inc dword [ebp - 0x2f4]
lea eax, [ebp - 0x31c]
call fcn.00403eb7
cmp dword [ebp - 0x2f4], eax
jb 0x402e0a
cmp word [ebp - 0x220], 0
je 0x403638
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea esi, [ebp - 0x31c]
call fcn.00403e5e
call fcn.0043432b
ret 0x10