Function at 0x4042a0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x429c38
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x434bf4]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00408a78
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4042e8
push 0x80004005
call fcn.00402e70
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x44], 0
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x42f0d8
mov eax, 0x43951c
call fcn.00405f10
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
movzx edx, word [esp + 0x30]
movzx ecx, word [esp + 0x2c]
push eax
movzx eax, word [esp + 0x32]
push edx
movzx edx, word [esp + 0x32]
push eax
movzx eax, word [esp + 0x32]
push ecx
movzx ecx, word [esp + 0x34]
push edx
push eax
push ecx
lea edx, [esp + 0x2c]
push str._04d__02d__02d__02d:_02d:_02d_CommandLine_s_r_n
push edx
call fcn.00403360
mov eax, dword [esp + 0x34]
add esp, 0x24
push eax
mov eax, 0x43951c
call fcn.00405f10
add esp, 4
lea ecx, [esp + 0x10]
call fcn.004035b0
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
push ecx
movzx ecx, byte [ebp + 8]
push edx
push eax
push str.NULL
push esi
push ecx
lea edx, [esp + 0x28]
push str.GE_GetURLExW_Category_d_DeviceID_s_Additional_s_Lang_d_Country_d_WSI_d_r_n
push edx
call fcn.00403360
mov eax, dword [esp + 0x30]
push eax
mov eax, 0x43951c
call fcn.00405f10
add esp, 0x24
call fcn.00408a78
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4043c7
push 0x80004005
call fcn.00402e70
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x40], 1
call fcn.00408a78
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4043f6
push 0x80004005
call fcn.00402e70
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x40], 2
call fcn.00408a78
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x404425
push 0x80004005
call fcn.00402e70
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x40], 3
call fcn.00408a78
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x404454
push 0x80004005
call fcn.00402e70
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x20]
push ecx
push esi
mov byte [esp + 0x48], 4
call fcn.00404950
lea ebx, [esp + 0x20]
lea edi, [esp + 0x24]
call fcn.00404e30
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push edx
push ebx
push eax
lea ecx, [esp + 0x28]
push str.OSV_sPSI4_sOATR_s
push ecx
call fcn.00403360
mov edi, dword [esp + 0x30]
mov ecx, dword [edi - 8]
mov eax, 1
sub eax, dword [edi - 4]
add esp, 0x1c
or ecx, eax
jge 0x4044c4
push 0
lea ecx, [esp + 0x18]
call fcn.00403250
mov edi, dword [esp + 0x14]
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push edx
mov edx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push ecx
push 1
push edx
push edi
push eax
mov ecx, esi
call fcn.004038f0
mov esi, eax
lea eax, [edi - 0x10]
add esp, 0x1c
mov byte [esp + 0x40], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404508
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [esp + 0x40], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404529
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x40], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40454e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x40], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404573
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x40], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40459b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14