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

Disassembly:
push 0x354
mov eax, 0x446b51
call fcn.004372b5
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.00435420
add esp, 0xc
lea eax, [ebp - 0x224]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp eax, esi
jbe 0x402dc8
mov word [ebp - 0x1c], si
jmp 0x402dcf
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.0040e0b0
pop ecx
pop ecx
lea eax, [ebp - 0x30c]
call fcn.00403ca7
cmp eax, esi
je 0x403423
mov dword [ebp - 0x2f0], esi
jbe 0x40340d
push dword [ebp - 0x2f0]
lea esi, [ebp - 0x30c]
call fcn.00407e4f
lea esi, [ebp - 0x294]
call fcn.00403d1d
mov edi, esi
lea ecx, [ebp - 0x2e8]
mov byte [ebp - 4], 1
call fcn.0042d3c0
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 0x449e0c
mov eax, edi
call fcn.0040c1c0
cmp dword [ebp - 0x280], ebx
pop ecx
je 0x4033dc
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.00403bd3
test al, al
jne 0x402f29
mov esi, dword [ebp - 0x2f8]
cmp dword [esi + 0x18], 8
jb 0x402ed3
mov eax, dword [esi + 4]
jmp 0x402ed6
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea eax, [ebp - 0x294]
push eax
mov eax, esi
call fcn.00402cd4
test al, al
mov byte [ebp - 0x2e9], al
jne 0x4033c3
lea esi, [ebp - 0x2e8]
call fcn.0040ce90
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 0x4032e0
push ebx
lea esi, [ebp - 0x31c]
call fcn.00407e4f
lea esi, [ebp - 0x240]
call fcn.00403d1d
push 0x5c
push 0x2f
mov edi, esi
call fcn.0040c0f0
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.00403ca7
cmp eax, esi
jbe 0x40300e
mov dword [ebp - 0x324], 0x20
push dword [ebp - 0x2f4]
lea esi, [ebp - 0x31c]
call fcn.00407e4f
mov esi, eax
push 1
lea eax, [ebp - 0x324]
push eax
xor eax, eax
mov ecx, esi
call fcn.00403e7b
cmp eax, 0xffffffff
je 0x402fe5
mov edi, 0x449e18
push edi
lea eax, [ebp - 0x278]
push eax
call fcn.00403d3c
push 0xffffffffffffffff
mov eax, esi
push ebx
lea esi, [ebp - 0x278]
call fcn.00404193
push edi
mov eax, esi
push eax
call fcn.00403d3c
jmp 0x402ff5
push 0xffffffffffffffff
mov eax, esi
push ebx
lea esi, [ebp - 0x278]
call fcn.00404193
inc dword [ebp - 0x2f4]
lea eax, [ebp - 0x31c]
call fcn.00403ca7
cmp dword [ebp - 0x2f4], eax
jb 0x402f8e
lea esi, [ebp - 0x240]
call fcn.0040d200
mov byte [ebp - 0x2ea], al
mov eax, dword [ebp - 0x2f8]
lea esi, [ebp - 0x25c]
call fcn.00403d1d
cmp byte [ebp - 0x2ea], 0
mov byte [ebp - 4], 8
jne 0x403097
lea eax, [ebp - 0x240]
push eax
push dword [ebp - 0x2f8]
lea edi, [ebp - 0x2b0]
call fcn.0040d040
mov eax, edi
push eax
mov byte [ebp - 4], 9
call fcn.0040d4f0
add esp, 0xc
test al, al
je 0x403085
push 0xffffffffffffffff
lea eax, [ebp - 0x240]
push eax
xor ebx, ebx
mov eax, edi
call fcn.00401322
lea edi, [ebp - 0x240]
call fcn.0040b9e0
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.0040de60
pop ecx
cmp byte [ebp + 0x14], 0
mov byte [ebp - 4], 0xa
je 0x40320d
mov eax, 0x449e1c
lea ecx, [ebp - 0x2b0]
call fcn.00401222
lea eax, [ebp - 0x2b0]
lea esi, [ebp - 0x2e8]
call fcn.0040bf70
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.00435420
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 0x403148
lea eax, [ebp - 0x23c]
cmp dword [ebp - 0x244], 8
mov dword [ebp - 0x350], eax
mov eax, dword [ebp - 0x258]
jae 0x403163
lea eax, [ebp - 0x258]
cmp dword [ebp - 0x264], 0
mov dword [ebp - 0x348], eax
jne 0x40317b
and dword [ebp - 0x34c], 0
jmp 0x403196
cmp dword [ebp - 0x260], 8
mov eax, dword [ebp - 0x274]
jae 0x403190
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 0x4031da
lea esi, [ebp - 0x2b0]
call fcn.0040ce90
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 0x4032a3
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 0x4032a3
cmp dword [ebp - 0x264], ebx
jne 0x403219
xor edx, edx
jmp 0x40322e
cmp dword [ebp - 0x260], 8
mov edx, dword [ebp - 0x274]
jae 0x40322e
lea edx, [ebp - 0x274]
cmp dword [ebp - 0x244], 8
mov ecx, dword [ebp - 0x258]
jae 0x403243
lea ecx, [ebp - 0x258]
cmp dword [ebp - 0x228], 8
mov eax, dword [ebp - 0x23c]
jae 0x403258
lea eax, [ebp - 0x23c]
push 1
push ecx
push edx
push eax
push 0x449dac
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
seta byte [ebp - 0x2e9]
cmp byte [ebp - 0x2e9], 0
jne 0x4032a5
lea esi, [ebp - 0x2b0]
call fcn.0040ce90
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 0x4033c3
cmp dword [ebp - 0x27c], 8
mov eax, dword [ebp - 0x290]
jae 0x403302
lea eax, [ebp - 0x290]
push eax
push 0x527f
lea ecx, [ebp - 0x25c]
call fcn.00402ca1
lea eax, [ebp - 0x240]
push 0x507e
push eax
mov byte [ebp - 4], 0xd
call fcn.00402c83
add esp, 0x10
mov byte [ebp - 4], 0xe
cmp dword [ebp - 0x2b8], ebx
je 0x40335c
push 0x449e38
lea eax, [ebp - 0x25c]
push eax
call fcn.00403d3c
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x2cc]
lea esi, [ebp - 0x25c]
call fcn.00404193
lea eax, [ebp - 0x25c]
push eax
mov eax, dword [ebp - 0x320]
call fcn.00403cbd
cmp dword [ebp - 0x228], 8
mov ecx, dword [ebp - 0x23c]
jae 0x403383
lea ecx, [ebp - 0x23c]
cmp dword [ebp - 0x244], 8
mov eax, dword [ebp - 0x258]
jae 0x403398
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.00403c68
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.00403ca7
cmp dword [ebp - 0x2f0], eax
jb 0x402e15
xor esi, esi
cmp word [ebp - 0x224], si
je 0x403423
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea esi, [ebp - 0x30c]
call fcn.00403c68
call fcn.00437338
ret 0x10