Function at 0x409240
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x5a0
mov ax, word [0x4526cc]
push ebx
push ebp
push esi
mov esi, ecx
mov cl, byte [0x4526ce]
mov word [esp + 0xc], ax
mov ax, word [0x4526c4]
mov edx, dword [str.notcp]
mov byte [esp + 0xe], cl
mov ecx, dword [str.notrm]
mov word [esp + 0x34], ax
mov eax, dword [0x4526bc]
mov dword [esp + 0x20], ecx
mov ecx, dword [0x4526ac]
mov dword [esp + 0x38], eax
mov eax, dword [0x4526b0]
mov dword [esp + 0x2c], ecx
mov ecx, dword [0x45269c]
mov dword [esp + 0x3c], eax
mov al, byte [0x4526a4]
mov dword [esp + 0x30], edx
mov dx, word [0x4526b8]
mov dword [esp + 0x40], ecx
mov ecx, dword [str.lang]
mov byte [esp + 0x14], al
mov eax, dword [str.sellang]
mov word [esp + 0x24], dx
mov edx, dword [0x4526a8]
mov dword [esp + 0x18], ecx
mov ecx, dword [0x452698]
mov dword [esp + 0x54], eax
mov eax, dword [0x452688]
mov dword [esp + 0x28], edx
mov edx, dword [str.boot]
push edi
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x64], eax
mov dword [esp + 0x14], edx
mov dx, word [0x452690]
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x68]
mov word [esp + 0x20], dx
mov edx, dword [str.slstat]
mov dword [esi + 0x108], 0
rep stosd dword es:[edi], eax
xor ecx, ecx
mov dword [esp + 0x60], edx
mov edx, dword [esi + 0x100]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], ecx
push edx
lea eax, [esp + 0xb0]
mov dword [esp + 0x54], ecx
push str.__s_
push eax
mov dword [esp + 0x60], ecx
mov dword [esp + 0x74], 0x44
call fcn.0042d7d0
mov eax, dword [0x456ab4]
add esp, 0xc
test eax, eax
jne 0x409366
mov eax, dword [0x456ab0]
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push ecx
push edx
lea eax, [esp + 0xb4]
push 0x2d
push eax
lea ecx, [esp + 0xbc]
push str._s__c_s__s_
push ecx
call fcn.0042d7d0
mov eax, dword [esi + 0xe8]
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x4093c9
mov edx, dword [esi + 0xe8]
lea eax, [esp + 0x1c]
push edx
push eax
lea ecx, [esp + 0xb4]
push 0x2d
push ecx
lea edx, [esp + 0xbc]
push str._s__c_s__s_
push edx
call fcn.0042d7d0
add esp, 0x18
mov eax, dword [esi + 0xc4]
test eax, eax
je 0x4093f7
lea eax, [esp + 0x58]
lea ecx, [esp + 0xac]
push eax
push 0x2d
push ecx
lea edx, [esp + 0xb8]
push str._s__c_s
push edx
call fcn.0042d7d0
add esp, 0x14
mov eax, dword [0x456a74]
test eax, eax
je 0x409427
mov eax, dword [eax]
lea ecx, [esp + 0x3c]
push eax
push ecx
lea edx, [esp + 0xb4]
push 0x2d
push edx
lea eax, [esp + 0xbc]
push str._s__c_s__s_
push eax
call fcn.0042d7d0
add esp, 0x18
mov eax, dword [0x456a78]
test eax, eax
je 0x409457
mov ecx, dword [eax]
lea edx, [esp + 0x30]
push ecx
push edx
lea eax, [esp + 0xb4]
push 0x2d
push eax
lea ecx, [esp + 0xbc]
push str._s__c_s__s_
push ecx
call fcn.0042d7d0
add esp, 0x18
mov edx, dword [esi + 0xdc]
mov eax, dword [edx - 8]
test eax, eax
je 0x40948b
mov eax, edx
lea ecx, [esp + 0x2c]
push eax
push ecx
lea edx, [esp + 0xb4]
push 0x2d
push edx
lea eax, [esp + 0xbc]
push str._s__c_s__s_
push eax
call fcn.0042d7d0
add esp, 0x18
mov ecx, dword [esi + 0xe0]
mov eax, dword [ecx - 8]
test eax, eax
je 0x4094bf
mov edx, ecx
lea eax, [esp + 0x40]
push edx
push eax
lea ecx, [esp + 0xb4]
push 0x2d
push ecx
lea edx, [esp + 0xbc]
push str._s__c_s__s_
push edx
call fcn.0042d7d0
add esp, 0x18
mov eax, dword [esi + 0xe4]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4094f3
mov ecx, eax
lea edx, [esp + 0x44]
push ecx
push edx
lea eax, [esp + 0xb4]
push 0x2d
push eax
lea ecx, [esp + 0xbc]
push str._s__c_s__s_
push ecx
call fcn.0042d7d0
add esp, 0x18
mov edx, dword [esi + 0x118]
lea eax, [esp + 0x60]
push edx
push eax
lea ecx, [esp + 0xb4]
push 0x2d
push ecx
lea edx, [esp + 0xbc]
push str._s__c_s__d_
push edx
call fcn.0042d7d0
mov eax, dword [0x456af0]
add esp, 0x18
test eax, eax
je 0x40954b
lea eax, [esp + 0x14]
lea ecx, [esp + 0xac]
push eax
push 0x2d
push ecx
lea edx, [esp + 0xb8]
push str._s__c_s
push edx
call fcn.0042d7d0
add esp, 0x14
mov eax, dword [esi + 0x110]
test eax, eax
je 0x409579
lea eax, [esp + 0x34]
lea ecx, [esp + 0xac]
push eax
push 0x2d
push ecx
lea edx, [esp + 0xb8]
push str._s__c_s
push edx
call fcn.0042d7d0
add esp, 0x14
mov eax, dword [esi + 0x114]
test eax, eax
je 0x4095a7
lea eax, [esp + 0x24]
lea ecx, [esp + 0xac]
push eax
push 0x2d
push ecx
lea edx, [esp + 0xb8]
push str._s__c_s
push edx
call fcn.0042d7d0
add esp, 0x14
mov eax, dword [esi + 0x100]
lea ecx, [esp + 0x4ac]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x4ac]
push 0x5c
push edx
call fcn.0042cfca
mov edi, eax
add esp, 8
test edi, edi
je 0x4095d7
mov byte [edi], 0
mov eax, dword [esi + 0x134]
mov ebx, dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x409603
push eax
call ebx
mov eax, dword [esi + 0x134]
push eax
call ebp
mov dword [esi + 0x134], 0
mov eax, dword [esi + 0x138]
test eax, eax
je 0x409623
push eax
call ebx
mov ecx, dword [esi + 0x138]
push ecx
call ebp
mov dword [esi + 0x138], 0
neg edi
lea edx, [esp + 0x48]
lea ecx, [esp + 0x4ac]
sbb edi, edi
lea eax, [esp + 0x68]
push edx
and edi, ecx
push eax
push edi
push 0
push 0
push 0
push 0
lea edx, [esp + 0xc8]
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
test esi, esi
je 0x409669
mov eax, dword [esp + 0x4c]
push eax
call ebp
mov ecx, dword [esp + 0x48]
push ecx
call ebp
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5a0
ret