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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x483695
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8d0
mov eax, dword [0x4a57cc]
mov dword [ebp - 0x58], eax
push esi
push edi
mov dword [ebp - 0x824], ecx
mov eax, dword [ebp - 0x824]
add eax, 0xa0
push eax
push 0x4892fc
lea ecx, [ebp - 0x45c]
push ecx
call fcn.00463edd
add esp, 0xc
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x44]
mov dword [ebp - 0x828], eax
cmp dword [ebp - 0x828], 1
je 0x409292
cmp dword [ebp - 0x828], 3
je 0x4093a0
cmp dword [ebp - 0x828], 4
je 0x4094ac
jmp 0x4095b5
lea ecx, [ebp - 0x45c]
add ecx, 0xffffffff
mov dword [ebp - 0x82c], ecx
mov edx, dword [ebp - 0x82c]
mov al, byte [edx + 1]
mov byte [ebp - 0x82d], al
inc dword [ebp - 0x82c]
cmp byte [ebp - 0x82d], 0
jne 0x4092a1
mov edi, dword [ebp - 0x82c]
mov ecx, dword [0x489304]
mov dword [edi], ecx
mov eax, 0xc
call fcn.00463720
mov dword [ebp - 0x834], esp
push 0xa
mov edx, dword [ebp - 0x834]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1498]
and ecx, 0xff00
shr ecx, 8
push ecx
call fcn.004644c4
add esp, 0xc
mov dword [ebp - 0x838], eax
mov edx, dword [ebp - 0x838]
mov dword [ebp - 0x83c], edx
mov eax, dword [ebp - 0x838]
mov cl, byte [eax]
mov byte [ebp - 0x83d], cl
inc dword [ebp - 0x838]
cmp byte [ebp - 0x83d], 0
jne 0x409313
mov edx, dword [ebp - 0x838]
sub edx, dword [ebp - 0x83c]
mov eax, dword [ebp - 0x83c]
mov dword [ebp - 0x844], eax
mov dword [ebp - 0x848], edx
lea ecx, [ebp - 0x45c]
add ecx, 0xffffffff
mov dword [ebp - 0x84c], ecx
mov edx, dword [ebp - 0x84c]
mov al, byte [edx + 1]
mov byte [ebp - 0x84d], al
inc dword [ebp - 0x84c]
cmp byte [ebp - 0x84d], 0
jne 0x40935d
mov edi, dword [ebp - 0x84c]
mov esi, dword [ebp - 0x844]
mov edx, dword [ebp - 0x848]
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4095b5
lea eax, [ebp - 0x45c]
add eax, 0xffffffff
mov dword [ebp - 0x854], eax
mov ecx, dword [ebp - 0x854]
mov dl, byte [ecx + 1]
mov byte [ebp - 0x855], dl
inc dword [ebp - 0x854]
cmp byte [ebp - 0x855], 0
jne 0x4093af
mov edi, dword [ebp - 0x854]
mov eax, dword [0x489308]
mov dword [edi], eax
mov eax, 0xc
call fcn.00463720
mov dword [ebp - 0x85c], esp
push 0xa
mov ecx, dword [ebp - 0x85c]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1498]
and eax, 0xff00
shr eax, 8
push eax
call fcn.004644c4
add esp, 0xc
mov dword [ebp - 0x860], eax
mov ecx, dword [ebp - 0x860]
mov dword [ebp - 0x864], ecx
mov edx, dword [ebp - 0x860]
mov al, byte [edx]
mov byte [ebp - 0x865], al
inc dword [ebp - 0x860]
cmp byte [ebp - 0x865], 0
jne 0x40941f
mov ecx, dword [ebp - 0x860]
sub ecx, dword [ebp - 0x864]
mov edx, dword [ebp - 0x864]
mov dword [ebp - 0x86c], edx
mov dword [ebp - 0x870], ecx
lea eax, [ebp - 0x45c]
add eax, 0xffffffff
mov dword [ebp - 0x874], eax
mov ecx, dword [ebp - 0x874]
mov dl, byte [ecx + 1]
mov byte [ebp - 0x875], dl
inc dword [ebp - 0x874]
cmp byte [ebp - 0x875], 0
jne 0x409469
mov edi, dword [ebp - 0x874]
mov esi, dword [ebp - 0x86c]
mov eax, dword [ebp - 0x870]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4095b5
lea ecx, [ebp - 0x45c]
add ecx, 0xffffffff
mov dword [ebp - 0x87c], ecx
mov edx, dword [ebp - 0x87c]
mov al, byte [edx + 1]
mov byte [ebp - 0x87d], al
inc dword [ebp - 0x87c]
cmp byte [ebp - 0x87d], 0
jne 0x4094bb
mov edi, dword [ebp - 0x87c]
mov ecx, dword [0x48930c]
mov dword [edi], ecx
mov eax, 0xc
call fcn.00463720
mov dword [ebp - 0x884], esp
push 0xa
mov edx, dword [ebp - 0x884]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1498]
and ecx, 0xff00
shr ecx, 8
push ecx
call fcn.004644c4
add esp, 0xc
mov dword [ebp - 0x888], eax
mov edx, dword [ebp - 0x888]
mov dword [ebp - 0x88c], edx
mov eax, dword [ebp - 0x888]
mov cl, byte [eax]
mov byte [ebp - 0x88d], cl
inc dword [ebp - 0x888]
cmp byte [ebp - 0x88d], 0
jne 0x40952d
mov edx, dword [ebp - 0x888]
sub edx, dword [ebp - 0x88c]
mov eax, dword [ebp - 0x88c]
mov dword [ebp - 0x894], eax
mov dword [ebp - 0x898], edx
lea ecx, [ebp - 0x45c]
add ecx, 0xffffffff
mov dword [ebp - 0x89c], ecx
mov edx, dword [ebp - 0x89c]
mov al, byte [edx + 1]
mov byte [ebp - 0x89d], al
inc dword [ebp - 0x89c]
cmp byte [ebp - 0x89d], 0
jne 0x409577
mov edi, dword [ebp - 0x89c]
mov esi, dword [ebp - 0x894]
mov edx, dword [ebp - 0x898]
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x45c]
add eax, 0xffffffff
mov dword [ebp - 0x8a4], eax
mov ecx, dword [ebp - 0x8a4]
mov dl, byte [ecx + 1]
mov byte [ebp - 0x8a5], dl
inc dword [ebp - 0x8a4]
cmp byte [ebp - 0x8a5], 0
jne 0x4095c4
mov edi, dword [ebp - 0x8a4]
mov ax, word [0x489310]
mov word [edi], ax
mov ecx, dword [ebp + 0xc]
add ecx, 0x48
mov dword [ebp - 0x8ac], ecx
mov edx, dword [ebp - 0x8ac]
mov dword [ebp - 0x8b0], edx
mov eax, dword [ebp - 0x8ac]
mov cl, byte [eax]
mov byte [ebp - 0x8b1], cl
inc dword [ebp - 0x8ac]
cmp byte [ebp - 0x8b1], 0
jne 0x409609
mov edx, dword [ebp - 0x8ac]
sub edx, dword [ebp - 0x8b0]
mov eax, dword [ebp - 0x8b0]
mov dword [ebp - 0x8b8], eax
mov dword [ebp - 0x8bc], edx
lea ecx, [ebp - 0x45c]
add ecx, 0xffffffff
mov dword [ebp - 0x8c0], ecx
mov edx, dword [ebp - 0x8c0]
mov al, byte [edx + 1]
mov byte [ebp - 0x8c1], al
inc dword [ebp - 0x8c0]
cmp byte [ebp - 0x8c1], 0
jne 0x409653
mov edi, dword [ebp - 0x8c0]
mov esi, dword [ebp - 0x8b8]
mov edx, dword [ebp - 0x8bc]
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x67c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ecx, dword [ebp - 0x824]
add ecx, 0xa0
mov dword [ebp - 0x8c8], ecx
lea edx, [ebp - 0x564]
mov dword [ebp - 0x8cc], edx
mov eax, dword [ebp - 0x8cc]
mov dword [ebp - 0x8d0], eax
mov ecx, dword [ebp - 0x8c8]
mov dl, byte [ecx]
mov byte [ebp - 0x8d1], dl
mov eax, dword [ebp - 0x8cc]
mov cl, byte [ebp - 0x8d1]
mov byte [eax], cl
mov edx, dword [ebp - 0x8c8]
add edx, 1
mov dword [ebp - 0x8c8], edx
mov eax, dword [ebp - 0x8cc]
add eax, 1
mov dword [ebp - 0x8cc], eax
cmp byte [ebp - 0x8d1], 0
jne 0x4096cd
push 0x5c
lea ecx, [ebp - 0x564]
push ecx
call fcn.004031f0
add esp, 8
mov byte [eax], 0
lea edx, [ebp - 0x564]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, 0x11
xor eax, eax
lea edi, [ebp - 0x54]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x54], 0x44
lea eax, [ebp - 0x574]
push eax
lea ecx, [ebp - 0x54]
push ecx
push 0
push 0
push 0x4000020
push 0
push 0
push 0
lea edx, [ebp - 0x45c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x409802
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x1f
jne 0x4097f1
mov eax, dword [0x4a358c]
push eax
lea ecx, [ebp - 0x820]
call fcn.00403be0
mov dword [ebp - 0x8d8], eax
mov ecx, dword [ebp - 0x8d8]
mov dword [ebp - 0x8dc], ecx
mov dword [ebp - 4], 0
push 0
mov ecx, dword [ebp - 0x8dc]
call fcn.00420d30
push eax
push 0
lea ecx, [ebp - 0x79c]
call fcn.00404760
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x820]
call fcn.00414cd0
lea ecx, [ebp - 0x79c]
call fcn.00474f05
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x79c]
call fcn.00404810
lea edx, [ebp - 0x67c]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
xor eax, eax
jmp 0x409814
lea eax, [ebp - 0x67c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, 1
lea esp, [ebp - 0x8e4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x58]
call fcn.004635af
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8