Function at 0x404880
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0xc
test byte [0x19b7028], 1
jne 0x404893
or dword [0x19b7028], 1
push edi
push 0x3e8fa0
call fcn.00403ca0
mov dword [0x19b7024], eax
add esp, 4
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
xor edi, edi
cmp dword [esp + 4], edi
mov dword [0x19b7020], eax
jle 0x404bde
push ebx
push ebp
push esi
jmp 0x4048d5
mov eax, dword [0x19b7020]
test eax, eax
je 0x404bca
mov esi, dword [eax + edi*4]
push str._rargs
push esi
call fcn.0040544a
add esp, 8
test eax, eax
jne 0x404ab9
push 0x40cad0
push esi
call fcn.0040544a
add esp, 8
test eax, eax
jne 0x404ab9
push str._contentbytes
push esi
call fcn.0040544a
add esp, 8
test eax, eax
jne 0x404a91
push 0x40ca98
push esi
call fcn.0040544a
add esp, 8
test eax, eax
jne 0x404a91
push str._staturlerror
push esi
call fcn.0040544a
add esp, 8
test eax, eax
jne 0x404a69
push 0x40ca60
push esi
call fcn.0040544a
add esp, 8
test eax, eax
jne 0x404a69
push str._gparamurl
push esi
call fcn.0040544a
add esp, 8
test eax, eax
jne 0x404a41
push 0x40ca30
push esi
call fcn.0040544a
add esp, 8
test eax, eax
jne 0x404a41
push str._staturlsuccesslaunch
push esi
call fcn.0040544a
add esp, 8
test eax, eax
jne 0x4049b8
push 0x40c9d8
push esi
call fcn.0040544a
add esp, 8
test eax, eax
je 0x404bbf
lea ecx, [edi + 1]
cmp ecx, dword [esp + 0x10]
jge 0x404bbf
mov eax, dword [0x19b7020]
mov ecx, dword [eax + edi*4 + 4]
lea edx, [esp + 0x18]
push edx
push 0x3e
push ecx
mov dword [esp + 0x24], 0
call fcn.004037c0
mov ebp, eax
add esp, 0xc
test ebp, ebp
je 0x404bbf
xor esi, esi
cmp dword [ebp], esi
je 0x404a33
mov dword [esp + 0x14], 0x6dc918
nop
cmp esi, dword [esp + 0x18]
jge 0x404a33
mov ebx, dword [ebp + esi*4]
test ebx, ebx
je 0x404a1a
mov edx, dword [esp + 0x14]
push ebx
push edx
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
push ebx
call fcn.0040595e
add dword [esp + 0x18], 0xa028
inc esi
add esp, 4
cmp dword [ebp + esi*4], 0
jne 0x404a00
push ebp
call fcn.0040595e
add esp, 4
jmp 0x404bbf
lea eax, [edi + 1]
cmp eax, dword [esp + 0x10]
jge 0x404bbf
mov ecx, dword [0x19b7020]
mov edx, dword [ecx + edi*4 + 4]
push edx
push 0x45bf18
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
jmp 0x404bbf
lea eax, [edi + 1]
cmp eax, dword [esp + 0x10]
jge 0x404bbf
mov ecx, dword [0x19b7020]
mov edx, dword [ecx + edi*4 + 4]
push edx
push 0xeb8880
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
jmp 0x404bbf
lea eax, [edi + 1]
cmp eax, dword [esp + 0x10]
jge 0x404bbf
mov ecx, dword [0x19b7020]
mov edx, dword [ecx + edi*4 + 4]
push edx
call dword [sym.imp.SHLWAPI.dll_StrToIntW]
mov dword [0xeea94c], eax
jmp 0x404bbf
lea eax, [edi + 1]
cmp eax, dword [esp + 0x10]
jge 0x404bbf
mov edi, eax
mov eax, dword [0x19b7020]
mov eax, dword [eax + edi*4]
push str._begin_
push eax
call fcn.0040544a
add esp, 8
test eax, eax
je 0x404bbf
mov ecx, dword [0x19b7020]
inc edi
lea esi, [edi*4]
mov eax, dword [esi + ecx]
push 0x40c9bc
push eax
xor bl, bl
call fcn.0040544a
add esp, 8
test eax, eax
jne 0x404bbf
lea edx, [edi + 1]
mov dword [esp + 0x14], edx
jmp 0x404b20
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x10]
jge 0x404bbf
mov ebp, dword [sym.imp.SHLWAPI.dll_StrCatW]
test bl, bl
je 0x404b46
mov ecx, dword [0x19b7024]
push 0x40c9b8
push ecx
call ebp
mov edx, dword [0x19b7020]
mov eax, dword [esi + edx]
mov ecx, dword [0x19b7024]
push eax
push ecx
call ebp
test bl, bl
je 0x404b6b
mov edx, dword [0x19b7024]
push 0x40c9b8
push edx
call ebp
mov eax, dword [0x19b7020]
mov esi, dword [esi + eax]
push str.testlog
push esi
call fcn.0040544a
mov ecx, dword [0x19b7024]
add esp, 8
push 0x40c6f0
test eax, eax
push ecx
setne bl
call ebp
mov edx, dword [0x19b7020]
inc dword [esp + 0x14]
inc edi
lea esi, [edi*4]
mov eax, dword [esi + edx]
push 0x40c9bc
push eax
call fcn.0040544a
add esp, 8
test eax, eax
je 0x404b20
inc edi
cmp edi, dword [esp + 0x10]
jl 0x4048d0
mov eax, dword [esp + 0x20]
mov ecx, dword [0x19b7024]
pop esi
pop ebp
pop ebx
mov dword [eax], ecx
pop edi
add esp, 0xc
ret
mov eax, dword [esp + 0x14]
mov edx, dword [0x19b7024]
mov dword [eax], edx
pop edi
add esp, 0xc
ret