Function at 0x407420
Capabilities:
Create process on windows
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x436e2b
mov eax, dword fs:[0]
push eax
sub esp, 0x494
mov eax, dword [0x440480]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
push 1
mov dword [ebp - 0x43c], esi
call fcn.00422173
mov ebx, eax
add esp, 4
mov dword [ebp - 0x444], ebx
mov dword [ebp - 0x440], esi
mov dword [ebp - 4], esi
mov byte [ebp - 0x431], 0
mov dword [ebp - 0x438], esi
cmp dword [0x442d90], esi
jle 0x40784f
cmp byte [ebp - 0x431], 0
jne 0x4075b5
mov eax, dword [0x442d94]
mov edx, dword [ebp - 0x438]
mov eax, dword [eax + edx*4]
mov ecx, str._START
lea ebx, [ebx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4074d0
test dl, dl
je 0x4074cc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4074d0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4074b0
xor eax, eax
jmp 0x4074d5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40765d
mov eax, dword [ebp - 0x438]
inc eax
mov byte [ebp - 0x431], 1
mov dword [ebp - 0x438], eax
cmp eax, dword [0x442d90]
jge 0x40765d
mov ecx, dword [0x442d94]
mov edx, dword [ecx + eax*4]
lea eax, [esi + 2]
push eax
push ebx
mov dword [ebp - 0x43c], edx
call fcn.00422207
lea edi, [esi + 1]
add esp, 8
mov ecx, esi
cmp esi, edi
jge 0x40753b
mov edx, 0x43c784
sub edx, esi
lea esp, [esp]
mov bl, byte [edx + ecx]
mov byte [ecx + eax], bl
inc ecx
cmp ecx, edi
jl 0x407530
mov ebx, dword [ebp - 0x43c]
mov ecx, ebx
mov byte [edi + eax], 0
lea esi, [ecx + 1]
lea ebx, [ebx]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x407550
sub ecx, esi
lea esi, [edi + ecx]
lea ecx, [esi + 1]
push ecx
push eax
call fcn.00422207
add esp, 8
mov ecx, edi
cmp edi, esi
jge 0x40757e
mov edx, ebx
sub edx, edi
mov bl, byte [edx + ecx]
mov byte [ecx + eax], bl
inc ecx
cmp ecx, esi
jl 0x407573
lea edx, [esi + 3]
push edx
push eax
mov byte [esi + eax], 0
call fcn.00422207
lea ecx, [esi + 2]
add esp, 8
mov ebx, eax
mov eax, esi
cmp esi, ecx
jge 0x407651
mov edi, 0x43ccc4
sub edi, esi
mov dl, byte [edi + eax]
mov byte [eax + ebx], dl
inc eax
cmp eax, ecx
jl 0x4075a5
jmp 0x407651
lea eax, [esi + 2]
push eax
push ebx
call fcn.00422207
lea edi, [esi + 1]
add esp, 8
mov ecx, esi
cmp esi, edi
jge 0x4075dd
mov edx, 0x43c784
sub edx, esi
mov bl, byte [edx + ecx]
mov byte [ecx + eax], bl
inc ecx
cmp ecx, edi
jl 0x4075d2
mov ecx, dword [0x442d94]
mov edx, dword [ebp - 0x438]
mov byte [edi + eax], 0
mov ebx, dword [ecx + edx*4]
mov ecx, ebx
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x4075f5
sub ecx, esi
lea esi, [edi + ecx]
lea ecx, [esi + 1]
push ecx
push eax
call fcn.00422207
add esp, 8
mov ecx, edi
cmp edi, esi
jge 0x407623
mov edx, ebx
sub edx, edi
mov bl, byte [edx + ecx]
mov byte [ecx + eax], bl
inc ecx
cmp ecx, esi
jl 0x407618
lea edx, [esi + 3]
push edx
push eax
mov byte [esi + eax], 0
call fcn.00422207
lea ecx, [esi + 2]
add esp, 8
mov ebx, eax
mov eax, esi
cmp esi, ecx
jge 0x407651
mov edi, 0x43ccc4
sub edi, esi
mov dl, byte [edi + eax]
mov byte [eax + ebx], dl
inc eax
cmp eax, ecx
jl 0x407646
mov esi, ecx
mov byte [esi + ebx], 0
mov dword [ebp - 0x440], esi
mov eax, dword [ebp - 0x438]
inc eax
mov dword [ebp - 0x438], eax
cmp eax, dword [0x442d90]
jl 0x40748a
cmp byte [ebp - 0x431], 0
mov dword [ebp - 0x444], ebx
je 0x40784f
mov esi, 0x442ba8
mov edi, edi
mov eax, dword [esi]
mov edi, dword [ebp - 0x43c]
push eax
push edi
call fcn.00422350
add esp, 8
test eax, eax
jne 0x40784f
add esi, 4
cmp esi, 0x442c40
jl 0x407690
push eax
push eax
lea eax, [ebp - 0x328]
push eax
lea ecx, [ebp - 0x430]
push ecx
push edi
call fcn.00422e33
add esp, 0x14
lea edx, [ebp - 0x328]
push edx
lea eax, [ebp - 0x430]
push eax
lea ecx, [ebp - 0x220]
push str._s_s
push ecx
call fcn.00420bc7
add esp, 0x10
lea edx, [ebp - 0x220]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push str.TEMP
call fcn.00420d10
add esp, 4
mov dword [ebp - 0x438], eax
call fcn.00401300
mov dword [ebp - 0x43c], eax
push 0x104
lea eax, [ebp - 0x118]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea esi, [ebp - 0x118]
mov eax, edi
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x407757
test cl, cl
je 0x407753
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x407757
add eax, 2
add esi, 2
test cl, cl
jne 0x407737
xor eax, eax
jmp 0x40775c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4077ed
mov ecx, dword [ebp - 0x43c]
push ecx
push edi
call fcn.00422350
add esp, 8
test eax, eax
jne 0x4077ed
cmp byte [0x443b40], al
jne 0x40778c
call fcn.00401040
mov byte [0x443b40], 1
mov edx, dword [0x443b78]
mov eax, dword [edx + 0x9c]
push eax
push edi
call fcn.00422350
add esp, 8
test eax, eax
jne 0x4077ed
mov eax, dword [ebp - 0x438]
push eax
push edi
call fcn.00422350
add esp, 8
test eax, eax
jne 0x4077ed
cmp byte [0x443b40], al
jne 0x4077ce
call fcn.00401040
mov byte [0x443b40], 1
mov edx, dword [0x443b78]
mov eax, dword [edx + 0x98]
push edi
lea ecx, [ebp - 0x118]
push ecx
push eax
mov eax, edi
call fcn.00405080
add esp, 0xc
mov ecx, dword [ebp - 0x43c]
push ecx
call fcn.00420c4b
add esp, 4
push 0x44
lea edx, [ebp - 0x4a0]
push 0
push edx
call fcn.00428cb0
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x454], eax
mov dword [ebp - 0x450], eax
mov dword [ebp - 0x44c], eax
mov dword [ebp - 0x448], eax
lea eax, [ebp - 0x454]
push eax
lea ecx, [ebp - 0x4a0]
push ecx
push 0
push 0
push 0x100
push 0
push 0
push 0
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push ebx
call fcn.00420f27
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004204c6
mov esp, ebp
pop ebp
ret