Function at 0x408f50
Capabilities:
Accept command line arguments
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x463a38
push eax
push 0x46351c
push str._tWinMain
push 3
push str.wWinMain
mov edx, 0x172
mov ecx, str.d:devopsworkspacep_37d34ce895ed4865ac95061b653d796fmisc_setup3_backupdownloader_backupdownload.cpp
call fcn.00407d50
add esp, 0x14
push 1
push 0x4a83ec
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
inc eax
cmp eax, 1
jne 0x408fe5
mov eax, dword [0x4a880c]
test al, 1
jne 0x408fbe
or eax, 1
xorps xmm0, xmm0
push 0x45be60
mov dword [0x4a880c], eax
movlpd qword [0x4a8810], xmm0
call fcn.0043de8b
add esp, 4
mov ecx, 0x4a8810
call fcn.00439800
call dword [sym.imp.arkHTTPClient.dll_arkHTTPStartup]
test eax, eax
jne 0x408fe5
push 0x4369a0
call dword [sym.imp.arkHTTPClient.dll_arkHTTPSetLogCallback]
add esp, 4
call fcn.00438180
push str._TXQQSetupEx0503A1C22B84_CE8D_437A_AA60_6D3ABCB18ACF
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x409037
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], 0x463a6c
push eax
push 0x46351c
push str._tWinMain
push 3
push str.wWinMain
mov edx, 0x177
mov ecx, str.d:devopsworkspacep_37d34ce895ed4865ac95061b653d796fmisc_setup3_backupdownloader_backupdownload.cpp
call fcn.00407d50
add esp, 0x14
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push str.get_current_time:_lu
push str._tWinMain
push 3
push str.wWinMain
push 0x17e
push str.d:devopsworkspacep_37d34ce895ed4865ac95061b653d796fmisc_setup3_backupdownloader_backupdownload.cpp
mov dword [0x4a81f4], eax
call fcn.00409850
mov ecx, dword [ebp + 0x10]
add esp, 0x1c
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409070
sub ecx, edx
sar ecx, 1
je 0x4090af
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], str.cmd_line
push eax
push 0x46351c
push str._tWinMain
push 3
push str.wWinMain
mov edx, 0x182
mov ecx, str.d:devopsworkspacep_37d34ce895ed4865ac95061b653d796fmisc_setup3_backupdownloader_backupdownload.cpp
call fcn.00407d50
add esp, 0x14
push ebx
push esi
push edi
lea eax, [ebp + 0x10]
xor edi, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
test esi, esi
je 0x409134
cmp dword [ebp + 0x10], 1
jne 0x4090d9
lea ebx, [edi + 3]
jmp 0x409196
push str.simple
push dword [esi + 4]
call fcn.00445461
add esp, 8
test eax, eax
jne 0x4090f5
lea ebx, [eax + 4]
jmp 0x409196
push dword [esi + 4]
call fcn.00445fe2
mov edi, eax
add esp, 4
test edi, edi
jne 0x409170
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x463898
push eax
push 0x46351c
push 0x4638cc
push 3
push str._anonymous_namespace::ParseCmdLine
mov edx, 0xde
mov ecx, str.d:devopsworkspacep_37d34ce895ed4865ac95061b653d796fmisc_setup3_backupdownloader_backupdownload.cpp
call fcn.00407d50
add esp, 0x14
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], 0x463ad4
push eax
push 0x46351c
push str._tWinMain
push 3
push str.wWinMain
mov edx, 0x18a
mov ecx, str.d:devopsworkspacep_37d34ce895ed4865ac95061b653d796fmisc_setup3_backupdownloader_backupdownload.cpp
call fcn.00407d50
add esp, 0x14
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp dword [ebp + 0x10], 2
jle 0x409191
push str.silent
push dword [esi + 8]
call fcn.00445461
add esp, 8
mov ebx, eax
neg ebx
sbb ebx, ebx
add ebx, 2
jmp 0x409196
mov ebx, 1
call fcn.00408c20
mov byte [0x4a81e8], bl
cmp ebx, 1
je 0x40923e
cmp ebx, 2
je 0x40923e
lea eax, [ebp + 0x10]
mov ecx, str.d:devopsworkspacep_37d34ce895ed4865ac95061b653d796fmisc_setup3_backupdownloader_backupdownload.cpp
push eax
push 0x46351c
push str._tWinMain
push 3
push str.wWinMain
cmp ebx, 3
jne 0x4091f2
mov edx, 0x19e
mov dword [ebp + 0x10], 0x463b28
call fcn.00407d50
add esp, 0x14
mov ecx, ebx
call fcn.004088f0
jmp 0x40929e
cmp ebx, 4
jne 0x409217
mov edx, 0x1a3
mov dword [ebp + 0x10], 0x463b3c
call fcn.00407d50
add esp, 0x14
mov ecx, ebx
call fcn.004088f0
jmp 0x40929e
mov edx, 0x1a9
mov dword [ebp + 0x10], 0x463b54
call fcn.00407d50
add esp, 0x14
call fcn.00436470
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push edi
push 0x463ae4
push str._tWinMain
push 3
push str.wWinMain
push 0x194
push str.d:devopsworkspacep_37d34ce895ed4865ac95061b653d796fmisc_setup3_backupdownloader_backupdownload.cpp
call fcn.00409850
add esp, 0x1c
cmp ebx, 2
jne 0x409295
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], 0x463b14
push eax
push 0x46351c
push str._tWinMain
push 3
push str.wWinMain
mov edx, 0x197
mov ecx, str.d:devopsworkspacep_37d34ce895ed4865ac95061b653d796fmisc_setup3_backupdownloader_backupdownload.cpp
call fcn.00407d50
add esp, 0x14
mov edx, edi
mov ecx, ebx
call fcn.004085a0
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], 0x463b80
push eax
push 0x46351c
push str._tWinMain
push 3
push str.wWinMain
mov edx, 0x1ae
mov ecx, str.d:devopsworkspacep_37d34ce895ed4865ac95061b653d796fmisc_setup3_backupdownloader_backupdownload.cpp
call fcn.00407d50
add esp, 0x14
push 0xffffffffffffffff
push 0x4a83ec
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
sub eax, 1
jne 0x4092e4
call dword [sym.imp.arkHTTPClient.dll_arkHTTPShutdown]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10