Function at 0x40c050
Capabilities:
Accept command line arguments
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ceaff
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
mov eax, dword [0x5080f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x104], edx
mov dword [ebp - 0x108], ecx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x4c]
push 0x34
push 0
push eax
mov dword [ebp - 0xb8], 0
call fcn.004a08b0
xorps xmm0, xmm0
mov byte [ebp - 0x34], 0
add esp, 0xc
mov dword [ebp - 0x20], 0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x1c], 0
push 1
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x4c]
call fcn.0040a5c0
sub esp, 8
lea ecx, [ebp - 0x4c]
mov eax, esp
mov dword [eax], str.silent
mov dword [eax + 4], 6
call fcn.0040a5a0
test al, al
jne 0x40c56d
sub esp, 8
lea ecx, [ebp - 0x4c]
mov eax, esp
mov dword [eax], str.verysilent
mov dword [eax + 4], 0xa
call fcn.0040a5a0
test al, al
jne 0x40c56d
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
sub esp, 8
movzx esi, ax
mov eax, esp
lea ecx, [ebp - 0x4c]
mov dword [eax], str.lang_id
mov dword [eax + 4], 7
call fcn.0040a5a0
test al, al
jne 0x40c161
sub esp, 8
lea ecx, [ebp - 0x4c]
mov eax, esp
mov dword [eax], str.language
mov dword [eax + 4], 8
call fcn.0040a5a0
test al, al
je 0x40c1d9
sub esp, 8
lea ecx, [ebp - 0x4c]
mov eax, esp
mov dword [eax], str.lang_id
mov dword [eax + 4], 7
call fcn.0040a5a0
sub esp, 8
lea ecx, [ebp - 0x4c]
test al, al
mov eax, esp
je 0x40c196
mov dword [eax], str.lang_id
mov dword [eax + 4], 7
jmp 0x40c1a3
mov dword [eax], str.language
mov dword [eax + 4], 8
call fcn.0040abb0
cmp dword [eax + 0x14], 8
jb 0x40c1b0
mov eax, dword [eax]
push 0xa
push 0
push eax
call fcn.004aeeab
add esp, 0xc
mov esi, eax
xor ecx, ecx
cmp dword [ecx + 0x4e93a0], esi
je 0x40c1d9
add ecx, 0xc
cmp ecx, 0x21c
jb 0x40c1c1
mov esi, 0x409
push esi
lea eax, [ebp - 0x18]
mov dword [ebp - 0xb8], 0x4e939c
xorps xmm0, xmm0
lea ecx, [ebp - 0xb8]
push eax
movlpd qword [ebp - 0x18], xmm0
call fcn.0044f3b0
mov edi, dword [ebp - 0x18]
mov eax, dword [edi]
mov dword [ebp - 0xe8], 0
mov esi, dword [eax + 4]
push 0x10
xor eax, eax
mov dword [ebp - 0xd8], 0
push str._Sfx_MsgBoxTitle
lea ecx, [ebp - 0xe8]
mov dword [ebp - 0xd4], 7
mov word [ebp - 0xe8], ax
mov byte [ebp - 4], 1
call fcn.004123e0
lea eax, [ebp - 0xe8]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0xac]
mov ecx, esi
push eax
call dword [0x4d9444]
mov ecx, edi
call esi
lea ecx, [ebp - 0xe8]
call fcn.004127e0
mov esi, dword [ebp - 0x18]
mov eax, dword [esi]
mov dword [ebp - 0xd0], 0
mov edi, dword [eax]
mov ecx, ebx
mov dword [ebp - 0xc0], 0
xor eax, eax
mov dword [ebp - 0xbc], 7
mov word [ebp - 0xd0], ax
mov byte [ebp - 4], 5
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c2a0
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0xd0]
call fcn.004123e0
lea eax, [ebp - 0xd0]
mov dword [ebp - 0x100], 0
mov dword [ebp - 0xb4], eax
lea eax, [ebp - 0xb8]
mov dword [ebp - 0xb0], eax
push 0x12
xor eax, eax
mov dword [ebp - 0xf0], 0
push str._Sfx_Download_Fail
lea ecx, [ebp - 0x100]
mov dword [ebp - 0xec], 7
mov word [ebp - 0x100], ax
mov byte [ebp - 4], 7
call fcn.004123e0
lea eax, [ebp - 0xb4]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0x100]
mov ecx, edi
push eax
lea eax, [ebp - 0x64]
push eax
call dword [0x4d9444]
mov ecx, esi
call edi
lea ecx, [ebp - 0x100]
call fcn.004127e0
push 0x412840
push 1
push 0x18
lea eax, [ebp - 0xd0]
mov byte [ebp - 4], 0xc
push eax
call fcn.00485024
mov edi, dword [ebp - 0x18]
mov eax, dword [edi]
mov dword [ebp - 0xe8], 0
mov esi, dword [eax + 4]
push 0xc
xor eax, eax
mov dword [ebp - 0xd8], 0
push str._Sfx_ErrCode
lea ecx, [ebp - 0xe8]
mov dword [ebp - 0xd4], 7
mov word [ebp - 0xe8], ax
mov byte [ebp - 4], 0xc
call fcn.004123e0
lea eax, [ebp - 0xe8]
mov byte [ebp - 4], 0xe
push eax
lea eax, [ebp - 0x94]
mov ecx, esi
push eax
call dword [0x4d9444]
mov ecx, edi
call esi
lea ecx, [ebp - 0xe8]
call fcn.004127e0
mov edi, dword [ebp - 0x18]
mov eax, dword [edi]
mov dword [ebp - 0x100], 0
mov esi, dword [eax + 4]
mov dword [ebp - 0xf0], 0
mov dword [ebp - 0xec], 7
push 0xc
xor eax, eax
mov byte [ebp - 4], 0x10
push str._Sfx_LogInfo
lea ecx, [ebp - 0x100]
mov word [ebp - 0x100], ax
call fcn.004123e0
lea eax, [ebp - 0x100]
mov byte [ebp - 4], 0x12
push eax
lea eax, [ebp - 0x7c]
mov ecx, esi
push eax
call dword [0x4d9444]
mov ecx, edi
call esi
lea ecx, [ebp - 0x100]
call fcn.004127e0
cmp dword [ebp - 0x68], 8
lea ecx, [ebp - 0x7c]
lea eax, [ebp - 0x94]
cmovae ecx, dword [ebp - 0x7c]
cmp dword [ebp - 0x80], 8
cmovae eax, dword [ebp - 0x94]
mov dword [ebp - 0xd0], 0
push dword [ebp - 0x104]
xor edx, edx
mov byte [ebp - 4], 0x15
push ecx
push dword [ebp - 0x108]
mov word [ebp - 0xd0], dx
lea edx, [ebp - 0xd0]
push eax
lea eax, [ebp - 0xb0]
mov dword [ebp - 0xc0], 0
push str._n_n_s:_d._n_n_s:_n_s.
push eax
mov dword [ebp - 0xbc], 7
mov dword [ebp - 0xb8], 1
mov dword [ebp - 0xb0], edx
call fcn.0040d100
add esp, 0x18
lea eax, [ebp - 0xd0]
cmp dword [ebp - 0xbc], 8
lea ecx, [ebp - 0x64]
cmovae eax, dword [ebp - 0xd0]
push dword [ebp - 0xc0]
push eax
call fcn.0040b4c0
lea ecx, [ebp - 0xd0]
call fcn.004127e0
cmp dword [ebp - 0x98], 8
lea ecx, [ebp - 0xac]
push 0x10010
cmovae ecx, dword [ebp - 0xac]
lea eax, [ebp - 0x64]
cmp dword [ebp - 0x50], 8
push ecx
cmovae eax, dword [ebp - 0x64]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x7c]
call fcn.004127e0
lea ecx, [ebp - 0x94]
call fcn.004127e0
lea ecx, [ebp - 0x64]
call fcn.004127e0
lea ecx, [ebp - 0xac]
call fcn.004127e0
mov edi, dword [ebp - 0x14]
test edi, edi
je 0x40c56d
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x40c56d
mov eax, dword [edi]
mov esi, dword [eax]
mov ecx, esi
call dword [0x4d9444]
mov ecx, edi
call esi
lock xadd dword [edi + 8], ebx
dec ebx
jne 0x40c56d
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4d9444]
mov ecx, edi
call esi
lea ecx, [ebp - 0x24]
call fcn.0040b200
lea ecx, [ebp - 0x30]
call fcn.0040ac70
cmp byte [ebp - 0x34], 0
je 0x40c58b
lea ecx, [ebp - 0x4c]
call fcn.004127e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00484d55
mov esp, ebp
pop ebp
ret