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

Disassembly:
push 0x354
mov eax, 0x446669
call fcn.00436cbf
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 - 0x222]
push esi
push eax
mov edi, ecx
mov word [ebp - 0x224], si
call fcn.00434e30
add esp, 0xc
lea eax, [ebp - 0x224]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp eax, esi
jbe 0x402de7
mov word [ebp - 0x1c], si
jmp 0x402dee
mov word [ebp - 0x224], si
mov dword [ebp - 0x308], esi
mov dword [ebp - 0x304], esi
mov dword [ebp - 0x300], esi
lea eax, [ebp - 0x30c]
push eax
push 0x3b
mov ecx, edi
mov dword [ebp - 4], esi
call fcn.0040e130
pop ecx
pop ecx
lea eax, [ebp - 0x30c]
call fcn.00403cab
cmp eax, esi
je 0x403442
mov dword [ebp - 0x2f0], esi
jbe 0x40342c
push dword [ebp - 0x2f0]
lea esi, [ebp - 0x30c]
call fcn.00407e87
lea esi, [ebp - 0x294]
call fcn.00403d21
mov edi, esi
lea ecx, [ebp - 0x2e8]
mov byte [ebp - 4], 1
call fcn.0042cec1
push 0xffffffffffffffff
mov ecx, esi
push ecx
xor ebx, ebx
mov byte [ebp - 4], 2
call fcn.00401322
push ebx
push 1
lea esi, [ebp - 0x2e8]
mov byte [ebp - 4], 1
call fcn.004012b6
push 0x448e0c
mov eax, edi
call fcn.0040c230
cmp dword [ebp - 0x280], ebx
pop ecx
je 0x4033fb
mov dword [ebp - 0x2b4], 7
mov dword [ebp - 0x2b8], ebx
mov word [ebp - 0x2c8], bx
mov dword [ebp - 0x318], ebx
mov dword [ebp - 0x314], ebx
mov dword [ebp - 0x310], ebx
mov eax, edi
push eax
lea ecx, [ebp - 0x31c]
mov byte [ebp - 4], 4
mov byte [ebp - 0x2e9], bl
call fcn.00403bd7
test al, al
jne 0x402f48
mov esi, dword [ebp - 0x2f8]
cmp dword [esi + 0x18], 8
jb 0x402ef2
mov eax, dword [esi + 4]
jmp 0x402ef5
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea eax, [ebp - 0x294]
push eax
mov eax, esi
call fcn.00402cf3
test al, al
mov byte [ebp - 0x2e9], al
jne 0x4033e2
lea esi, [ebp - 0x2e8]
call fcn.0040cf00
push 0xffffffffffffffff
lea ecx, [ebp - 0x2cc]
push ecx
xor ebx, ebx
mov byte [ebp - 4], 5
call fcn.00401322
push ebx
push 1
mov byte [ebp - 4], 4
call fcn.004012b6
jmp 0x4032ff
push ebx
lea esi, [ebp - 0x31c]
call fcn.00407e87
lea esi, [ebp - 0x240]
call fcn.00403d21
push 0x5c
push 0x2f
mov edi, esi
call fcn.0040c160
pop ecx
pop ecx
mov dword [ebp - 0x260], 7
mov dword [ebp - 0x264], ebx
mov word [ebp - 0x274], bx
xor esi, esi
inc esi
lea eax, [ebp - 0x31c]
mov byte [ebp - 4], 7
mov dword [ebp - 0x2f4], esi
call fcn.00403cab
cmp eax, esi
jbe 0x40302d
mov dword [ebp - 0x324], 0x20
push dword [ebp - 0x2f4]
lea esi, [ebp - 0x31c]
call fcn.00407e87
mov esi, eax
push 1
lea eax, [ebp - 0x324]
push eax
xor eax, eax
mov ecx, esi
call fcn.00403e9f
cmp eax, 0xffffffff
je 0x403004
mov edi, 0x448e18
push edi
lea eax, [ebp - 0x278]
push eax
call fcn.00403d40
push 0xffffffffffffffff
mov eax, esi
push ebx
lea esi, [ebp - 0x278]
call fcn.004041b7
push edi
mov eax, esi
push eax
call fcn.00403d40
jmp 0x403014
push 0xffffffffffffffff
mov eax, esi
push ebx
lea esi, [ebp - 0x278]
call fcn.004041b7
inc dword [ebp - 0x2f4]
lea eax, [ebp - 0x31c]
call fcn.00403cab
cmp dword [ebp - 0x2f4], eax
jb 0x402fad
lea esi, [ebp - 0x240]
call fcn.0040d270
mov byte [ebp - 0x2ea], al
mov eax, dword [ebp - 0x2f8]
lea esi, [ebp - 0x25c]
call fcn.00403d21
cmp byte [ebp - 0x2ea], 0
mov byte [ebp - 4], 8
jne 0x4030b6
lea eax, [ebp - 0x240]
push eax
push dword [ebp - 0x2f8]
lea edi, [ebp - 0x2b0]
call fcn.0040d0b0
mov eax, edi
push eax
mov byte [ebp - 4], 9
call fcn.0040d560
add esp, 0xc
test al, al
je 0x4030a4
push 0xffffffffffffffff
lea eax, [ebp - 0x240]
push eax
xor ebx, ebx
mov eax, edi
call fcn.00401322
lea edi, [ebp - 0x240]
call fcn.0040ba50
push ebx
push 1
lea esi, [ebp - 0x2b0]
mov byte [ebp - 4], 8
call fcn.004012b6
lea eax, [ebp - 0x2e8]
push eax
lea ecx, [ebp - 0x240]
call fcn.0040dee0
pop ecx
cmp byte [ebp + 0x14], 0
mov byte [ebp - 4], 0xa
je 0x40322c
mov eax, 0x448e1c
lea ecx, [ebp - 0x2b0]
call fcn.00401222
lea eax, [ebp - 0x2b0]
lea esi, [ebp - 0x2e8]
call fcn.0040bfe0
mov ebx, eax
neg ebx
sbb bl, bl
xor edi, edi
push 0
inc edi
push edi
lea esi, [ebp - 0x2b0]
inc bl
call fcn.004012b6
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x360]
push 0
push eax
call fcn.00434e30
mov eax, dword [ebp - 0x2fc]
add esp, 0xc
neg bl
mov dword [ebp - 0x358], eax
mov eax, dword [ebp - 0x23c]
mov dword [ebp - 0x360], esi
mov dword [ebp - 0x35c], 0x540
sbb ebx, ebx
and ebx, str.install
cmp dword [ebp - 0x228], 8
mov dword [ebp - 0x354], ebx
jae 0x403167
lea eax, [ebp - 0x23c]
cmp dword [ebp - 0x244], 8
mov dword [ebp - 0x350], eax
mov eax, dword [ebp - 0x258]
jae 0x403182
lea eax, [ebp - 0x258]
cmp dword [ebp - 0x264], 0
mov dword [ebp - 0x348], eax
jne 0x40319a
and dword [ebp - 0x34c], 0
jmp 0x4031b5
cmp dword [ebp - 0x260], 8
mov eax, dword [ebp - 0x274]
jae 0x4031af
lea eax, [ebp - 0x274]
mov dword [ebp - 0x34c], eax
lea eax, [ebp - 0x360]
push eax
mov dword [ebp - 0x344], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x4031f9
lea esi, [ebp - 0x2b0]
call fcn.0040cf00
push 0xffffffffffffffff
lea ecx, [ebp - 0x2cc]
push ecx
xor ebx, ebx
mov byte [ebp - 4], 0xb
call fcn.00401322
push ebx
push 1
call fcn.004012b6
mov byte [ebp - 0x2e9], bl
cmp dword [ebp - 0x328], 0
je 0x4032c2
push 0xffffffffffffffff
push dword [ebp - 0x328]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x328]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x2e9], 1
jmp 0x4032c2
cmp dword [ebp - 0x264], ebx
jne 0x403238
xor edx, edx
jmp 0x40324d
cmp dword [ebp - 0x260], 8
mov edx, dword [ebp - 0x274]
jae 0x40324d
lea edx, [ebp - 0x274]
cmp dword [ebp - 0x244], 8
mov ecx, dword [ebp - 0x258]
jae 0x403262
lea ecx, [ebp - 0x258]
cmp dword [ebp - 0x228], 8
mov eax, dword [ebp - 0x23c]
jae 0x403277
lea eax, [ebp - 0x23c]
push 1
push ecx
push edx
push eax
push 0x448dac
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
seta byte [ebp - 0x2e9]
cmp byte [ebp - 0x2e9], 0
jne 0x4032c4
lea esi, [ebp - 0x2b0]
call fcn.0040cf00
push 0xffffffffffffffff
lea ecx, [ebp - 0x2cc]
push ecx
xor ebx, ebx
mov byte [ebp - 4], 0xc
call fcn.00401322
push ebx
push 1
call fcn.004012b6
xor ebx, ebx
xor edi, edi
push ebx
inc edi
push edi
lea esi, [ebp - 0x2e8]
call fcn.004012b6
push ebx
push edi
lea esi, [ebp - 0x25c]
call fcn.004012b6
push ebx
push edi
lea esi, [ebp - 0x278]
call fcn.004012b6
push ebx
push edi
lea esi, [ebp - 0x240]
mov byte [ebp - 4], 4
call fcn.004012b6
cmp byte [ebp - 0x2e9], 0
jne 0x4033e2
cmp dword [ebp - 0x27c], 8
mov eax, dword [ebp - 0x290]
jae 0x403321
lea eax, [ebp - 0x290]
push eax
push 0x527f
lea ecx, [ebp - 0x25c]
call fcn.00402cc0
lea eax, [ebp - 0x240]
push 0x507e
push eax
mov byte [ebp - 4], 0xd
call fcn.00402ca2
add esp, 0x10
mov byte [ebp - 4], 0xe
cmp dword [ebp - 0x2b8], ebx
je 0x40337b
push 0x448e38
lea eax, [ebp - 0x25c]
push eax
call fcn.00403d40
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x2cc]
lea esi, [ebp - 0x25c]
call fcn.004041b7
lea eax, [ebp - 0x25c]
push eax
mov eax, dword [ebp - 0x320]
call fcn.00403cc1
cmp dword [ebp - 0x228], 8
mov ecx, dword [ebp - 0x23c]
jae 0x4033a2
lea ecx, [ebp - 0x23c]
cmp dword [ebp - 0x244], 8
mov eax, dword [ebp - 0x258]
jae 0x4033b7
lea eax, [ebp - 0x258]
push ebx
push ecx
push eax
push dword [ebp - 0x2fc]
call dword [sym.imp.USER32.dll_MessageBoxW]
push ebx
push 1
lea esi, [ebp - 0x240]
call fcn.004012b6
push ebx
push 1
lea esi, [ebp - 0x25c]
call fcn.004012b6
lea esi, [ebp - 0x31c]
call fcn.00403c6c
push ebx
push 1
lea esi, [ebp - 0x2cc]
call fcn.004012b6
push ebx
push 1
lea esi, [ebp - 0x294]
mov byte [ebp - 4], 0
call fcn.004012b6
inc dword [ebp - 0x2f0]
lea eax, [ebp - 0x30c]
call fcn.00403cab
cmp dword [ebp - 0x2f0], eax
jb 0x402e34
xor esi, esi
cmp word [ebp - 0x224], si
je 0x403442
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea esi, [ebp - 0x30c]
call fcn.00403c6c
call fcn.00436d42
ret 0x10