Function at 0x401880
Capabilities:
Accept command line arguments
Create process on windows
Get common file path
Set environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x1f8
mov eax, dword [0x421040]
xor eax, esp
mov dword [esp + 0x1f4], eax
push esi
push edi
push 0x802
call fcn.0040dff3
add esp, 4
mov edi, eax
push 0x802
push 0
push edi
call fcn.0040ac10
add esp, 0xc
push edi
push 0x802
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x41f110
push 0x802
push edi
call fcn.0040d75c
add esp, 0xc
mov byte [esp + 0x24], 0
mov byte [esp + 0x20], 0
lea ecx, [esp + 0x40]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x20]
call fcn.00402b70
add esp, 0xc
mov ecx, eax
call fcn.00403b30
push edi
lea ecx, [esp + 0x134]
mov esi, eax
call fcn.00403f40
push esi
mov edx, eax
lea ecx, [esp + 0x1e8]
call fcn.004053f0
add esp, 4
lea ecx, [esp + 0x130]
call fcn.00403ee0
mov byte [esp + 0x24], 0
lea ecx, [esp + 0x40]
push dword [esp + 0x24]
mov byte [esp + 0x24], 0
push dword [esp + 0x24]
push dword [esp + 0x20]
call fcn.00402b80
add esp, 0xc
mov ecx, eax
call fcn.00402dd0
push edi
lea ecx, [esp + 0x134]
mov esi, eax
call fcn.00403f40
push esi
mov edx, eax
lea ecx, [esp + 0x18c]
call fcn.004053f0
add esp, 4
lea ecx, [esp + 0x130]
call fcn.00403ee0
mov byte [esp + 0x24], 0
lea ecx, [esp + 0x150]
push dword [esp + 0x24]
mov byte [esp + 0x24], 0
push dword [esp + 0x24]
push dword [esp + 0x20]
call fcn.00402b90
add esp, 0xc
mov ecx, eax
call fcn.00402e90
push edi
lea ecx, [esp + 0x134]
mov esi, eax
call fcn.00403f40
push esi
mov edx, eax
lea ecx, [esp + 0x1d0]
call fcn.004053f0
add esp, 4
lea ecx, [esp + 0x130]
call fcn.00403ee0
push edi
lea ecx, [esp + 0x174]
call fcn.00403f40
push 0x802
push 0
push edi
call fcn.0040ac10
add esp, 0xc
push edi
call fcn.0040d885
add esp, 4
lea ecx, [esp + 0x1e4]
call fcn.00403e80
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x4028db
push 0x24
call fcn.004093aa
mov ecx, eax
call fcn.004012c0
sub esp, 0xc
call fcn.00404bc0
mov edi, eax
push 0x24
mov dword [esp + 0x2c], edi
call fcn.004093aa
mov ecx, eax
call fcn.004012c0
sub esp, 0xc
call fcn.00404bc0
mov esi, eax
lea ecx, [esp + 0x188]
mov dword [esp + 0x1c], esi
call fcn.00403e80
push eax
mov ecx, edi
call fcn.00404c40
test eax, eax
jne 0x402867
lea ecx, [esp + 0x188]
call fcn.00403e80
push eax
mov ecx, esi
call fcn.00405260
test eax, eax
jne 0x402867
mov byte [esp + 0x24], al
lea ecx, [esp + 0x90]
push dword [esp + 0x24]
mov byte [esp + 0x24], al
push dword [esp + 0x24]
push dword [esp + 0x20]
call fcn.00402bc0
add esp, 0xc
mov ecx, eax
call fcn.00403630
mov byte [esp + 0x24], 0
lea ecx, [esp + 0x40]
push dword [esp + 0x24]
mov byte [esp + 0x24], 0
mov esi, eax
push dword [esp + 0x24]
push dword [esp + 0x20]
call fcn.00402bb0
add esp, 0xc
mov ecx, eax
call fcn.00402e90
mov ecx, dword [esp + 0x1c]
sub esp, 8
push esi
push eax
call fcn.004052e0
mov byte [esp + 0x24], 0
lea ecx, [esp + 0x120]
push dword [esp + 0x24]
mov byte [esp + 0x20], 0
push dword [esp + 0x20]
mov dword [esp + 0x28], eax
push dword [esp + 0x20]
call fcn.00402be0
add esp, 0xc
mov ecx, eax
call fcn.00403630
mov byte [esp + 0x24], 0
lea ecx, [esp + 0xa0]
push dword [esp + 0x24]
mov byte [esp + 0x20], 0
mov esi, eax
push dword [esp + 0x20]
push dword [esp + 0x20]
call fcn.00402bd0
add esp, 0xc
mov ecx, eax
call fcn.00403630
sub esp, 8
mov ecx, edi
push esi
push eax
call fcn.00404e40
mov byte [esp + 0x24], 0
lea ecx, [esp + 0xb0]
push dword [esp + 0x24]
mov byte [esp + 0x20], 0
push dword [esp + 0x20]
mov dword [esp + 0x40], eax
push dword [esp + 0x20]
call fcn.00402bf0
add esp, 0xc
mov ecx, eax
call fcn.00403630
mov byte [esp + 0x24], 0
lea ecx, [esp + 0xc0]
push dword [esp + 0x24]
mov byte [esp + 0x20], 0
mov esi, eax
push dword [esp + 0x20]
push dword [esp + 0x20]
call fcn.00402bd0
add esp, 0xc
mov ecx, eax
call fcn.00403630
sub esp, 8
mov ecx, edi
push esi
push eax
call fcn.00404e40
mov dword [esp + 0x3c], eax
mov byte [esp + 0x24], 0
lea ecx, [esp + 0xd0]
push dword [esp + 0x24]
mov byte [esp + 0x20], 0
push dword [esp + 0x20]
push dword [esp + 0x20]
call fcn.00402c00
add esp, 0xc
mov ecx, eax
call fcn.00403630
mov byte [esp + 0x24], 0
lea ecx, [esp + 0xe0]
push dword [esp + 0x24]
mov byte [esp + 0x20], 0
mov esi, eax
push dword [esp + 0x20]
push dword [esp + 0x20]
call fcn.00402bd0
add esp, 0xc
mov ecx, eax
call fcn.00403630
sub esp, 8
mov ecx, edi
push esi
push eax
call fcn.00404e40
mov byte [esp + 0x1c], 0
lea ecx, [esp + 0xf0]
push dword [esp + 0x1c]
mov byte [esp + 0x30], 0
push dword [esp + 0x30]
mov dword [esp + 0x2c], eax
push dword [esp + 0x20]
call fcn.00402c10
add esp, 0xc
mov ecx, eax
call fcn.00403630
mov byte [esp + 0x1c], 0
lea ecx, [esp + 0x100]
push dword [esp + 0x1c]
mov byte [esp + 0x30], 0
mov esi, eax
push dword [esp + 0x30]
push dword [esp + 0x20]
call fcn.00402bd0
add esp, 0xc
mov ecx, eax
call fcn.00403630
sub esp, 8
mov ecx, edi
push esi
push eax
call fcn.00404e40
mov byte [esp + 0x1c], 0
lea ecx, [esp + 0x110]
push dword [esp + 0x1c]
mov edi, eax
mov byte [esp + 0x30], 0
push dword [esp + 0x30]
mov dword [esp + 0x20], edi
push dword [esp + 0x20]
call fcn.00402c20
add esp, 0xc
mov ecx, eax
call fcn.00403630
mov byte [esp + 0x1c], 0
lea ecx, [esp + 0x1a0]
push dword [esp + 0x1c]
mov byte [esp + 0x30], 0
mov esi, eax
push dword [esp + 0x30]
push dword [esp + 0x20]
call fcn.00402bd0
add esp, 0xc
mov ecx, eax
call fcn.00403630
mov ecx, dword [esp + 0x28]
sub esp, 8
push esi
push eax
call fcn.00404e40
mov byte [esp + 0x1c], 0
lea ecx, [esp + 0x150]
push dword [esp + 0x1c]
mov byte [esp + 0x18], 0
push dword [esp + 0x18]
mov dword [esp + 0x34], eax
push dword [esp + 0x20]
call fcn.00402c40
add esp, 0xc
mov ecx, eax
call fcn.00403630
mov byte [esp + 0x14], 0
lea ecx, [esp + 0x130]
push dword [esp + 0x14]
mov byte [esp + 0x20], 0
mov esi, eax
push dword [esp + 0x20]
push dword [esp + 0x20]
call fcn.00402c30
add esp, 0xc
mov ecx, eax
call fcn.00403630
mov ecx, dword [esp + 0x28]
sub esp, 8
push esi
push eax
call fcn.00404f20
mov byte [esp + 0x14], 0
lea ecx, [esp + 0x130]
push dword [esp + 0x14]
mov byte [esp + 0x20], 0
push dword [esp + 0x20]
mov byte [esp + 0x3a], al
push dword [esp + 0x20]
call fcn.00402c50
add esp, 0xc
mov ecx, eax
call fcn.00403630
mov byte [esp + 0x14], 0
lea ecx, [esp + 0x150]
push dword [esp + 0x14]
mov byte [esp + 0x20], 0
mov esi, eax
push dword [esp + 0x20]
push dword [esp + 0x20]
call fcn.00402c30
add esp, 0xc
mov ecx, eax
call fcn.00403630
mov ecx, dword [esp + 0x28]
sub esp, 8
push esi
push eax
call fcn.00404f20
mov byte [esp + 0x14], 0
lea ecx, [esp + 0x130]
push dword [esp + 0x14]
mov byte [esp + 0x20], 0
push dword [esp + 0x20]
mov byte [esp + 0x3b], al
push dword [esp + 0x20]
call fcn.00402c60
add esp, 0xc
mov ecx, eax
call fcn.00403630
mov byte [esp + 0x14], 0
lea ecx, [esp + 0x150]
push dword [esp + 0x14]
mov byte [esp + 0x20], 0
mov esi, eax
push dword [esp + 0x20]
push dword [esp + 0x20]
call fcn.00402c30
add esp, 0xc
mov ecx, eax
call fcn.00403630
mov ecx, dword [esp + 0x28]
sub esp, 8
push esi
push eax
call fcn.00404f20
mov byte [esp + 0x14], 0
lea ecx, [esp + 0x150]
push dword [esp + 0x14]
mov byte [esp + 0x20], 0
push dword [esp + 0x20]
mov byte [esp + 0x3c], al
push dword [esp + 0x20]
call fcn.00402c70
add esp, 0xc
mov ecx, eax
call fcn.00402e90
mov byte [esp + 0x14], 0
lea ecx, [esp + 0x130]
push dword [esp + 0x14]
mov byte [esp + 0x20], 0
mov esi, eax
push dword [esp + 0x20]
push dword [esp + 0x20]
call fcn.00402c30
add esp, 0xc
mov ecx, eax
call fcn.00403630
mov ecx, dword [esp + 0x28]
sub esp, 8
push esi
push eax
call fcn.00404f20
mov byte [esp + 0x14], 0
lea ecx, [esp + 0x130]
push dword [esp + 0x14]
mov byte [esp + 0x20], 0
push dword [esp + 0x20]
mov byte [esp + 0x3d], al
push dword [esp + 0x20]
call fcn.00402c80
add esp, 0xc
mov ecx, eax
call fcn.00403630
mov byte [esp + 0x14], 0
lea ecx, [esp + 0x150]
push dword [esp + 0x14]
mov byte [esp + 0x20], 0
mov esi, eax
push dword [esp + 0x20]
push dword [esp + 0x20]
call fcn.00402c30
add esp, 0xc
mov ecx, eax
call fcn.00403630
mov ecx, dword [esp + 0x28]
sub esp, 8
push esi
push eax
call fcn.00404f20
mov byte [esp + 0x14], 0
lea ecx, [esp + 0x130]
push dword [esp + 0x14]
mov byte [esp + 0x20], 0
push dword [esp + 0x20]
mov byte [esp + 0x3e], al
push dword [esp + 0x20]
call fcn.00402c90
add esp, 0xc
mov ecx, eax
call fcn.00403630
mov byte [esp + 0x14], 0
lea ecx, [esp + 0x150]
push dword [esp + 0x14]
mov byte [esp + 0x20], 0
mov esi, eax
push dword [esp + 0x20]
push dword [esp + 0x20]
call fcn.00402c30
add esp, 0xc
mov ecx, eax
call fcn.00403630
mov ecx, dword [esp + 0x28]
sub esp, 8
push esi
push eax
call fcn.00404f20
mov byte [esp + 0x37], al
mov eax, dword [esp + 0x20]
cmp word [eax], 0
je 0x402b14
mov eax, dword [esp + 0x38]
cmp byte [eax], 0
je 0x402b14
mov eax, dword [esp + 0x3c]
cmp byte [eax], 0
je 0x402b14
mov esi, dword [esp + 0x24]
cmp byte [esi], 0
je 0x402b14
cmp byte [edi], 0
je 0x402b14
mov eax, dword [esp + 0x2c]
cmp byte [eax], 0
je 0x402b14
push 0x24
call fcn.004093aa
add esp, 4
mov dword [eax + 4], 0
push eax
mov dword [eax], 4
mov dword [eax + 0x20], 0
mov dword [eax + 0x10], edi
mov dword [eax + 0x14], edi
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], 0
call dword [sym.imp.EOSSDK_Win32_Shipping.dll__EOS_Initialize_4]
test eax, eax
jne 0x402aa0
push 0x50
call fcn.004093aa
mov ecx, dword [esp + 0x3c]
add esp, 4
mov dword [eax + 0x2c], 0
mov dword [eax + 0x44], 0
mov dword [eax + 0x48], 0
mov dword [eax + 0x4c], 0
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 0x14], ecx
mov ecx, dword [esp + 0x2c]
push eax
mov dword [eax], 0xd
mov dword [eax + 0x18], 0
mov dword [eax + 0x38], 0
mov dword [eax + 0x28], esi
mov dword [eax + 0x1c], 0
mov dword [eax + 0x30], 0
mov dword [eax + 0x34], 0
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0
mov dword [eax + 8], edi
mov dword [eax + 0x40], 0
mov dword [eax + 0xc], ecx
mov dword [eax + 0x3c], 0
mov dword [eax + 4], 0
call dword [sym.imp.EOSSDK_Win32_Shipping.dll__EOS_Platform_Create_4]
mov dword [0x4224d8], eax
test eax, eax
je 0x402a53
push eax
call dword [sym.imp.EOSSDK_Win32_Shipping.dll__EOS_Platform_GetAuthInterface_4]
push dword [0x4224d8]
mov dword [0x4224c8], eax
call dword [sym.imp.EOSSDK_Win32_Shipping.dll__EOS_Platform_GetUserInfoInterface_4]
mov dword [0x4224c0], eax
mov byte [esp + 0x14], 0
test eax, eax
je 0x40294f
cmp dword [0x4224c8], 0
je 0x402a0b
push dword [esp + 0x14]
mov byte [esp + 0x20], 0
lea ecx, [esp + 0x154]
push dword [esp + 0x20]
push dword [esp + 0x20]
call fcn.00402cc0
add esp, 0xc
mov ecx, eax
call fcn.00402e90
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edx, esi
mov ecx, eax
call fcn.00401010
mov esi, dword [sym.imp.EOSSDK_Win32_Shipping.dll__EOS_Platform_Tick_4]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0x402198
push 8
call fcn.004093aa
add esp, 4
mov dword [eax], 2
push 0x401870
push 0
push eax
push dword [0x4224c8]
mov dword [eax + 4], 0
call dword [sym.imp.EOSSDK_Win32_Shipping.dll__EOS_Auth_DeletePersistentAuth_16]
cmp byte [0x4224c6], 0
jne 0x402198
push dword [0x4224d8]
call esi
push 0x14
call edi
cmp byte [0x4224c6], 0
je 0x402183
push 0x18
call fcn.004093aa
xorps xmm0, xmm0
mov dword [esp + 0x20], eax
add esp, 4
movups xmmword [eax], xmm0
movq qword [eax + 0x10], xmm0
mov dword [eax], 3
add eax, 8
cmp byte [esp + 0x32], 0
mov dword [esp + 0x28], eax
je 0x4021d5
mov edx, 1
mov ecx, eax
call fcn.004012a0
mov eax, dword [esp + 0x28]
cmp byte [esp + 0x33], 0
je 0x4021e8
mov edx, 2
mov ecx, eax
call fcn.004012a0
cmp byte [esp + 0x34], 0
je 0x4021fd
mov ecx, dword [esp + 0x28]
mov edx, 4
call fcn.004012a0
cmp byte [esp + 0x35], 0
je 0x402212
mov ecx, dword [esp + 0x28]
mov edx, 8
call fcn.004012a0
cmp byte [esp + 0x36], 0
je 0x402227
mov ecx, dword [esp + 0x28]
mov edx, 0x10
call fcn.004012a0
cmp byte [esp + 0x37], 0
je 0x40223c
mov ecx, dword [esp + 0x28]
mov edx, 0x20
call fcn.004012a0
push 0x18
call fcn.004093aa
mov ecx, dword [esp + 0x20]
add esp, 4
mov dword [esp + 0x14], eax
mov dword [eax], 4
push 0x401850
push 0
push ecx
push dword [0x4224c8]
mov dword [eax + 0x14], 0
mov dword [eax + 4], 0
mov dword [eax + 0x10], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 2
mov dword [ecx + 4], eax
call dword [sym.imp.EOSSDK_Win32_Shipping.dll__EOS_Auth_Login_16]
cmp byte [0x4224c4], 0
jne 0x4022ac
push dword [0x4224d8]
call esi
push 0x14
call edi
cmp byte [0x4224c4], 0
je 0x402297
cmp byte [0x4224c7], 0
jne 0x4022f5
mov eax, dword [esp + 0x14]
push fcn.004015a0
push 0
push dword [esp + 0x24]
mov dword [eax + 0xc], 6
push dword [0x4224c8]
call dword [sym.imp.EOSSDK_Win32_Shipping.dll__EOS_Auth_Login_16]
cmp byte [0x4224c7], 0
jne 0x4022f5
push dword [0x4224d8]
call esi
push 0x14
call edi
cmp byte [0x4224c7], 0
je 0x4022e0
push dword [esp + 0x20]
lea ecx, [esp + 0x134]
call fcn.00403f40
push ecx
mov byte [esp + 0x18], 0
lea ecx, [esp + 0x44]
push dword [esp + 0x18]
mov byte [esp + 0x28], 0
push dword [esp + 0x28]
push dword [esp + 0x24]
call fcn.00402cd0
add esp, 8
mov ecx, eax
call fcn.00402e90
add esp, 4
lea ecx, [esp + 0x134]
push eax
call fcn.00403e50
cmp eax, 0xffffffff
je 0x40244c
mov ecx, dword [0x4224d4]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402351
sub ecx, edx
lea esi, [ecx*2 + 2]
push esi
call fcn.0040dff3
add esp, 4
mov edi, eax
push esi
push 0
push edi
call fcn.0040ac10
mov edx, dword [0x4224d4]
add esp, 0xc
mov ecx, edx
lea eax, [ecx + 1]
mov dword [esp + 0x14], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402387
sub ecx, dword [esp + 0x14]
push esi
push edi
push ecx
push edx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push edi
lea ecx, [esp + 0x154]
call fcn.00403f40
push ecx
mov byte [esp + 0x18], 0
lea ecx, [esp + 0x44]
push dword [esp + 0x18]
mov byte [esp + 0x28], 0
mov esi, eax
push dword [esp + 0x28]
push dword [esp + 0x24]
call fcn.00402cd0
add esp, 8
mov ecx, eax
call fcn.00402e90
add esp, 4
lea ecx, [esp + 0x134]
push eax
call fcn.00403e50
push esi
push eax
lea ecx, [esp + 0x138]
call fcn.00403eb0
lea ecx, [esp + 0x150]
call fcn.00403ee0
push 0xd
push ecx
mov byte [esp + 0x1c], 0
lea ecx, [esp + 0x48]
push dword [esp + 0x1c]
mov byte [esp + 0x2c], 0
push dword [esp + 0x2c]
push dword [esp + 0x28]
call fcn.00402cd0
add esp, 0xc
mov ecx, eax
call fcn.00402e90
push eax
lea ecx, [esp + 0x13c]
call fcn.00403e50
push eax
lea ecx, [esp + 0x138]
call fcn.00403e90
push ecx
mov byte [esp + 0x18], 0
lea ecx, [esp + 0x44]
push dword [esp + 0x18]
mov byte [esp + 0x28], 0
push dword [esp + 0x28]
push dword [esp + 0x24]
call fcn.00402ce0
add esp, 8
mov ecx, eax
call fcn.00402e90
add esp, 4
lea ecx, [esp + 0x134]
push eax
call fcn.00403e50
cmp eax, 0xffffffff
je 0x402595
mov eax, dword [0x4224dc]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402497
sub eax, edx
lea esi, [eax*2 + 2]
push esi
call fcn.0040dff3
add esp, 4
mov edi, eax
push esi
push 0
push edi
call fcn.0040ac10
mov edx, dword [0x4224dc]
add esp, 0xc
mov ecx, edx
lea eax, [ecx + 1]
mov dword [esp + 0x14], eax
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4024d0
sub ecx, dword [esp + 0x14]
push esi
push edi
push ecx
push edx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push edi
lea ecx, [esp + 0x154]
call fcn.00403f40
push ecx
mov byte [esp + 0x18], 0
lea ecx, [esp + 0x44]
push dword [esp + 0x18]
mov byte [esp + 0x28], 0
mov esi, eax
push dword [esp + 0x28]
push dword [esp + 0x24]
call fcn.00402ce0
add esp, 8
mov ecx, eax
call fcn.00402e90
add esp, 4
lea ecx, [esp + 0x134]
push eax
call fcn.00403e50
push esi
push eax
lea ecx, [esp + 0x138]
call fcn.00403eb0
lea ecx, [esp + 0x150]
call fcn.00403ee0
push 8
push ecx
mov byte [esp + 0x1c], 0
lea ecx, [esp + 0x48]
push dword [esp + 0x1c]
mov byte [esp + 0x2c], 0
push dword [esp + 0x2c]
push dword [esp + 0x28]
call fcn.00402ce0
add esp, 0xc
mov ecx, eax
call fcn.00402e90
push eax
lea ecx, [esp + 0x13c]
call fcn.00403e50
push eax
lea ecx, [esp + 0x138]
call fcn.00403e90
push 0x10
call fcn.004093aa
add esp, 4
mov dword [esp + 0x1c], eax
xorps xmm0, xmm0
movups xmmword [eax], xmm0
push 0x44
call fcn.004093aa
add esp, 4
mov dword [esp + 0x28], eax
push 0x44
push 0
push eax
call fcn.0040ac10
add esp, 0xc
lea eax, [esp + 0x130]
lea edx, [esp + 0x170]
lea ecx, [esp + 0x150]
push eax
call fcn.00405420
add esp, 4
lea ecx, [esp + 0x170]
push eax
call fcn.00403ef0
lea ecx, [esp + 0x150]
call fcn.00403ee0
mov esi, dword [0x4224cc]
lea ecx, [esp + 0x40]
mov byte [esp + 0x14], 0
push dword [esp + 0x14]
mov byte [esp + 0x24], 0
push dword [esp + 0x24]
push dword [esp + 0x20]
call fcn.00402cf0
add esp, 0xc
mov ecx, eax
call fcn.00402e90
mov edi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push esi
push eax
call edi
mov esi, dword [0x4224d0]
lea ecx, [esp + 0x150]
mov byte [esp + 0x14], 0
push dword [esp + 0x14]
mov byte [esp + 0x24], 0
push dword [esp + 0x24]
push dword [esp + 0x20]
call fcn.00402d00
add esp, 0xc
mov ecx, eax
call fcn.00402e90
push esi
push eax
call edi
mov esi, dword [0x4224d4]
lea ecx, [esp + 0x40]
mov byte [esp + 0x14], 0
push dword [esp + 0x14]
mov byte [esp + 0x24], 0
push dword [esp + 0x24]
push dword [esp + 0x20]
call fcn.00402d10
add esp, 0xc
mov ecx, eax
call fcn.00402e90
push esi
push eax
call edi
mov esi, dword [0x4224dc]
lea ecx, [esp + 0x150]
mov byte [esp + 0x14], 0
push dword [esp + 0x14]
mov byte [esp + 0x24], 0
push dword [esp + 0x24]
push dword [esp + 0x20]
call fcn.00402d20
add esp, 0xc
mov ecx, eax
call fcn.00402e90
push esi
push eax
call edi
push dword [esp + 0x38]
mov byte [esp + 0x18], 0
lea ecx, [esp + 0x44]
push dword [esp + 0x18]
mov byte [esp + 0x28], 0
push dword [esp + 0x28]
push dword [esp + 0x24]
call fcn.00402d30
add esp, 8
mov ecx, eax
call fcn.00402e90
add esp, 4
push eax
call edi
push dword [esp + 0x3c]
mov byte [esp + 0x18], 0
lea ecx, [esp + 0x44]
push dword [esp + 0x18]
mov byte [esp + 0x28], 0
push dword [esp + 0x28]
push dword [esp + 0x24]
call fcn.00402d40
add esp, 8
mov ecx, eax
call fcn.00402e90
add esp, 4
push eax
call edi
push dword [esp + 0x24]
mov byte [esp + 0x18], 0
lea ecx, [esp + 0x44]
push dword [esp + 0x18]
mov byte [esp + 0x28], 0
push dword [esp + 0x28]
push dword [esp + 0x24]
call fcn.00402d50
add esp, 8
mov ecx, eax
call fcn.00402e90
add esp, 4
push eax
call edi
push dword [esp + 0x2c]
mov byte [esp + 0x18], 0
lea ecx, [esp + 0x44]
push dword [esp + 0x18]
mov byte [esp + 0x2c], 0
push dword [esp + 0x2c]
push dword [esp + 0x24]
call fcn.00402d60
add esp, 8
mov ecx, eax
call fcn.00402e90
add esp, 4
push eax
call edi
push dword [esp + 0x18]
mov byte [esp + 0x18], 0
lea ecx, [esp + 0x44]
push dword [esp + 0x18]
mov byte [esp + 0x2c], 0
push dword [esp + 0x2c]
push dword [esp + 0x24]
call fcn.00402d70
add esp, 8
mov ecx, eax
call fcn.00402e90
add esp, 4
push eax
call edi
lea ecx, [esp + 0x1cc]
call fcn.00403e80
lea ecx, [esp + 0x170]
mov edx, eax
call fcn.00403e80
push dword [esp + 0x1c]
push dword [esp + 0x2c]
push edx
push 0
push 0
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x402997
lea ecx, [esp + 0x130]
call fcn.00403ee0
lea ecx, [esp + 0x170]
call fcn.00403ee0
lea ecx, [esp + 0x1cc]
call fcn.00403ee0
lea ecx, [esp + 0x188]
call fcn.00403ee0
lea ecx, [esp + 0x1e4]
call fcn.00403ee0
mov ecx, dword [esp + 0x1fc]
mov eax, 1
pop edi
pop esi
xor ecx, esp
call fcn.004092e2
mov esp, ebp
pop ebp
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [esp + 0x130]
call fcn.00401270
mov byte [esp + 0x18], 0
lea ecx, [esp + 0x40]
push dword [esp + 0x18]
mov byte [esp + 0x18], 0
mov esi, eax
push dword [esp + 0x18]
push dword [esp + 0x20]
call fcn.00402dc0
add esp, 0xc
mov ecx, eax
call fcn.00402dd0
push esi
mov edx, eax
lea ecx, [esp + 0x154]
call fcn.004053c0
add esp, 4
lea ecx, [esp + 0x130]
call fcn.00403f80
sub esp, 0x18
lea eax, [esp + 0x168]
mov ecx, esp
push eax
call fcn.00403fe0
call fcn.00401300
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [esp + 0x130]
call fcn.00401270
mov byte [esp + 0x24], 0
lea ecx, [esp + 0x40]
push dword [esp + 0x24]
mov byte [esp + 0x24], 0
mov esi, eax
push dword [esp + 0x24]
push dword [esp + 0x20]
call fcn.00402ba0
add esp, 0xc
mov ecx, eax
call fcn.00402dd0
push esi
mov edx, eax
lea ecx, [esp + 0x154]
call fcn.004053c0
add esp, 4
lea ecx, [esp + 0x130]
call fcn.00403f80
sub esp, 0x18
lea eax, [esp + 0x168]
mov ecx, esp
push eax
call fcn.00403fe0
call fcn.00401300
push dword [esp + 0x14]
mov byte [esp + 0x28], 0
lea ecx, [esp + 0x44]
push dword [esp + 0x28]
push dword [esp + 0x20]
call fcn.00402cb0
add esp, 0xc
mov ecx, eax
call fcn.00402f00
push eax
lea ecx, [esp + 0x134]
call fcn.00403fb0
sub esp, 0x18
lea eax, [esp + 0x148]
mov ecx, esp
push eax
call fcn.00403fe0
call fcn.00401300
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [esp + 0x150]
call fcn.00401270
mov byte [esp + 0x18], 0
lea ecx, [esp + 0x40]
push dword [esp + 0x18]
mov byte [esp + 0x18], 0
mov esi, eax
push dword [esp + 0x18]
push dword [esp + 0x20]
call fcn.00402d80
add esp, 0xc
mov ecx, eax
call fcn.00402f00
push esi
mov edx, eax
lea ecx, [esp + 0x1a4]
call fcn.004053c0
add esp, 4
lea ecx, [esp + 0x150]
call fcn.00403f80
sub esp, 0x18
lea eax, [esp + 0x1b8]
mov ecx, esp
push eax
call fcn.00403fe0
call fcn.00401300
mov byte [esp + 0x18], 0
lea ecx, [esp + 0x40]
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x20]
call fcn.00402d90
add esp, 0xc
mov ecx, eax
call fcn.00402e90
push eax
lea ecx, [esp + 0x134]
call fcn.00403fb0
sub esp, 0x18
lea eax, [esp + 0x148]
mov ecx, esp
push eax
call fcn.00403fe0
call fcn.00401300
mov byte [esp + 0x18], 0
lea ecx, [esp + 0x40]
push dword [esp + 0x18]
mov byte [esp + 0x18], 0
push dword [esp + 0x18]
push dword [esp + 0x20]
call fcn.00402da0
add esp, 0xc
mov ecx, eax
call fcn.00402f00
push eax
lea ecx, [esp + 0x134]
call fcn.00403fb0
sub esp, 0x18
lea eax, [esp + 0x148]
mov ecx, esp
push eax
call fcn.00403fe0
call fcn.00401300
push eax
call dword [sym.imp.EOSSDK_Win32_Shipping.dll__EOS_EResult_ToString_4]
push eax
lea ecx, [esp + 0x134]
call fcn.00403fb0
mov byte [esp + 0x18], 0
lea ecx, [esp + 0x40]
push dword [esp + 0x18]
mov byte [esp + 0x18], 0
mov esi, eax
push dword [esp + 0x18]
push dword [esp + 0x20]
call fcn.00402db0
add esp, 0xc
mov ecx, eax
call fcn.00402e90
push esi
mov edx, eax
lea ecx, [esp + 0x154]
call fcn.004053c0
add esp, 4
lea ecx, [esp + 0x130]
call fcn.00403f80
sub esp, 0x18
lea eax, [esp + 0x168]
mov ecx, esp
push eax
call fcn.00403fe0
call fcn.00401300
mov byte [esp + 0x18], 0
lea ecx, [esp + 0x40]
push dword [esp + 0x18]
mov byte [esp + 0x18], 0
push dword [esp + 0x18]
push dword [esp + 0x20]
call fcn.00402ca0
add esp, 0xc
mov ecx, eax
call fcn.00402f00
push eax
lea ecx, [esp + 0x134]
call fcn.00403fb0
sub esp, 0x18
lea eax, [esp + 0x148]
mov ecx, esp
push eax
call fcn.00403fe0
call fcn.00401300
int3