Function at 0x419348
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
sub esp, 0x8fc
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], ebp
call fcn.00443e20
mov ebp, eax
mov ecx, 0xfffffff6
mov dword [esp], ecx
call sub.KERNEL32.dll_GetStdHandle
sub esp, 4
mov dword [ebp + 4], eax
mov edx, dword [ebp + 0xc]
or edx, 2
mov dword [ebp + 0xc], edx
call fcn.00443e20
mov edi, eax
mov ecx, 0xfffffff5
mov dword [esp], ecx
call sub.KERNEL32.dll_GetStdHandle
sub esp, 4
mov dword [edi + 4], eax
mov edx, dword [edi + 0xc]
or edx, 2
mov dword [edi + 0xc], edx
call fcn.00443e20
mov esi, eax
mov ecx, 0xfffffff4
mov dword [esp], ecx
call sub.KERNEL32.dll_GetStdHandle
sub esp, 4
mov dword [esi + 4], eax
mov edx, dword [esi + 0xc]
or edx, 2
mov dword [esi + 0xc], edx
call sub.KERNEL32.dll_GetCommandLineA
mov ecx, eax
mov dword [esp + 0xc4], ecx
mov dword [esp + 0x8e8], ecx
mov edx, 0
mov dword [esp + 0xc8], edx
lea ecx, [esp + 0xc8]
mov dword [esp + 4], ecx
lea edx, [esp + 0xe0]
mov dword [esp + 8], edx
movzx ebx, byte [esp + 0x8e8]
mov dword [esp + 0xcc], ebx
mov byte [esp], bl
movzx ecx, byte [esp + 0x8e9]
mov dword [esp + 0xd0], ecx
mov byte [esp + 1], cl
movzx edx, byte [esp + 0x8ea]
mov dword [esp + 0xd4], edx
mov byte [esp + 2], dl
movzx ebx, byte [esp + 0x8eb]
mov dword [esp + 0xd8], ebx
mov byte [esp + 3], bl
mov ecx, 0x808
mov dword [esp + 0xc], ecx
call fcn.004190e8
and eax, eax
je 0x4194e8
mov edx, dword [esp + 0xcc]
mov ebp, edx
mov eax, dword [esp + 0xd0]
mov edi, eax
mov ecx, dword [esp + 0xd4]
mov esi, ecx
mov edx, dword [esp + 0xd8]
mov ebx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [0x453108]
inc ecx
mov dword [0x453108], ecx
lea edx, [esp + 0xc8]
mov dword [esp + 4], edx
lea ecx, [esp + 0xe0]
mov dword [esp + 8], ecx
xchg eax, ebp
mov byte [esp], al
xchg ebp, eax
xchg eax, edi
mov byte [esp + 1], al
xchg edi, eax
xchg eax, esi
mov byte [esp + 2], al
xchg esi, eax
mov byte [esp + 3], bl
mov edx, 0x808
mov dword [esp + 0xc], edx
call fcn.004190e8
and eax, eax
jne 0x419498
mov ecx, dword [0x453108]
inc ecx
shl ecx, 2
mov dword [esp], ecx
call fcn.00444f00
mov dword [0x4530e8], eax
mov edx, dword [esp + 0xc4]
mov dword [esp + 0x8e8], edx
mov ecx, 0
mov dword [esp + 0xc8], ecx
mov dword [esp + 0xdc], ecx
lea edx, [esp + 0xc8]
mov dword [esp + 4], edx
lea ecx, [esp + 0xe0]
mov dword [esp + 8], ecx
mov dl, byte [esp + 0x8e8]
mov byte [esp], dl
mov bl, byte [esp + 0x8e9]
mov byte [esp + 1], bl
mov cl, byte [esp + 0x8ea]
mov byte [esp + 2], cl
mov dl, byte [esp + 0x8eb]
mov byte [esp + 3], dl
mov ecx, 0x808
mov dword [esp + 0xc], ecx
call fcn.004190e8
mov ebp, eax
test ebp, ebp
je 0x419652
mov edx, ebp
mov dword [esp + 0xc0], edx
mov eax, 0
mov esi, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 0xc0]
inc ecx
mov dword [esp], ecx
call fcn.00444f00
mov edx, eax
mov eax, dword [0x4530e8]
mov dword [eax + esi*4], edx
mov ebp, edx
lea ecx, [esp + 0xe0]
mov edi, ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [edi]
mov byte [ebp], dl
inc ebp
inc edi
and edx, edx
jne 0x4195c8
mov ecx, dword [0x4530e8]
mov edx, dword [ecx + esi*4]
mov ebx, 0
mov ecx, dword [esp + 0xc0]
mov byte [edx + ecx], bl
inc esi
lea edx, [esp + 0xc8]
mov dword [esp + 4], edx
lea ecx, [esp + 0xe0]
mov dword [esp + 8], ecx
mov dl, byte [esp + 0x8e8]
mov byte [esp], dl
mov bl, byte [esp + 0x8e9]
mov byte [esp + 1], bl
mov cl, byte [esp + 0x8ea]
mov byte [esp + 2], cl
mov dl, byte [esp + 0x8eb]
mov byte [esp + 3], dl
mov ecx, 0x808
mov dword [esp + 0xc], ecx
call fcn.004190e8
test eax, eax
mov dword [esp + 0xc0], eax
jne 0x419598
mov dword [esp + 0xdc], esi
mov edx, dword [esp + 0xdc]
mov ecx, dword [0x4530e8]
mov ebx, 0
mov dword [ecx + edx*4], ebx
call sub.KERNEL32.dll_GetEnvironmentStrings
mov dword [0x453128], eax
lea eax, [0x3442a48]
mov dword [esp], eax
call sub.KERNEL32.dll_InitializeCriticalSection
sub esp, 4
call fcn.00445230
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
add esp, 0x8fc
ret