Function at 0x41ba23
Capabilities:
Accept command line arguments
Create directory
Get common file path
Get memory capacity
Get system information on windows
Read .ini file

Disassembly:
push 0x2b4
mov eax, 0x47cedf
call fcn.00454305
and dword [ebp - 0x264], 0
lea eax, [ebp - 0x264]
push eax
push str.LoadConfig
lea ecx, [ebp - 0x29c]
call fcn.0041e3a4
and dword [ebp - 4], 0
lea ecx, [ebp - 0x260]
call fcn.0040aa2d
xor eax, eax
inc eax
mov byte [ebp - 4], al
lea ecx, [ebp - 0x278]
call fcn.0040aa2d
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x274]
call fcn.0040aa2d
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28c]
call fcn.0040aa2d
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x270]
call fcn.0040aa2d
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x27c]
call fcn.0040aa2d
mov byte [ebp - 4], 6
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push 0x491784
call fcn.0041defb
pop ecx
pop ecx
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
push 0x40
pop ebx
push ebx
push ebx
lea ecx, [ebp - 0x278]
call fcn.0040a41f
push eax
push str.yyyy_MM_dd
lea eax, [ebp - 0x22c]
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetDateFormatW]
push ebx
push ebx
lea ecx, [ebp - 0x274]
call fcn.0040a41f
push eax
push str.HH:mm:ss
lea eax, [ebp - 0x22c]
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
push ecx
lea ecx, [ebp - 0x278]
call fcn.0040d63e
push ecx
lea ecx, [ebp - 0x274]
call fcn.0040d63e
push dword [ebp - 0x274]
push dword [ebp - 0x278]
push str.UTC:__s__s
call fcn.0041defb
add esp, 0xc
mov dword [0x4a7558], 0x11c
push 0x4a7558
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x41bb80
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Cannot_query_version_info__gle_u
mov dword [ebp - 0x264], eax
call fcn.0041defb
pop ecx
jmp 0x41ca29
push 0x4a7674
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
push 0x18
push dword [0x4a7688]
call fcn.0046a83a
mov ebx, eax
mov dword [ebp - 0x268], ebx
pop ecx
pop ecx
test ebx, ebx
jne 0x41bbb5
mov dword [ebp - 0x264], 8
jmp 0x41ca2a
imul eax, dword [0x4a7688], 0x18
push eax
push ebx
push 0
push 0
push 0xb
call dword [sym.imp.POWRPROF.dll_CallNtPowerInformation]
test eax, eax
jne 0x41bbf4
mov ecx, dword [0x4a7688]
test ecx, ecx
je 0x41bc06
mov eax, dword [0x4a769c]
lea edx, [ebx + 4]
cmp dword [edx], eax
cmova eax, dword [edx]
lea edx, [edx + 0x18]
sub ecx, 1
jne 0x41bbe0
mov dword [0x4a769c], eax
jmp 0x41bc06
push dword [ebp - 0x264]
push str.Cannot_query_processor_power_info_info__ntst_X
call fcn.0041defb
pop ecx
pop ecx
push 0x4a76a0
mov dword [0x4a76a0], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
cmp word [0x4a7674], di
jne 0x41bc7e
lea ecx, [ebp - 0x2c0]
call fcn.004359b9
mov byte [ebp - 4], 7
mov esi, dword [ebp - 0x2b0]
test esi, esi
je 0x41bc6f
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
je 0x41bc6f
mov eax, 0xaa64
cmp word [ebp - 0x26c], ax
jne 0x41bc6f
push 0xc
pop eax
mov word [0x4a7674], ax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2c0]
call fcn.00435973
mov esi, 0x491888
lea ecx, [ebp - 0x27c]
push esi
call fcn.0040a5c2
movzx eax, word [0x4a7674]
test eax, eax
je 0x41bcc9
cmp eax, 9
je 0x41bcc2
cmp eax, 0xc
je 0x41bcbb
push eax
lea eax, [ebp - 0x270]
push 0x4918a4
push eax
call fcn.0040bd93
add esp, 0xc
jmp 0x41bcd5
push str.arm64
jmp 0x41bcca
push 0x491890
jmp 0x41bcca
push esi
lea ecx, [ebp - 0x270]
call fcn.0040a5c2
push dword [ebp - 0x27c]
push dword [ebp - 0x270]
push dword [0x4a7564]
push dword [0x4a7560]
push dword [0x4a755c]
push str.Windows__u._u._u__s__build:__s
call fcn.0041defb
add esp, 0x18
xor eax, eax
mov word [ebp - 0x14], ax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x41bd34
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x264], eax
jmp 0x41ca18
push 0x491d74
lea eax, [ebp - 0x21c]
push 0x105
push eax
call fcn.0046a8bd
add esp, 0xc
cmp dword [0x4a7564], 0x23f0
jae 0x41bdc0
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x25c]
call fcn.0040948c
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x25c]
push 0x4918ec
call fcn.0041cb18
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x41bdae
push str.CryptCATAdminAcquireContext2
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
neg eax
push esi
sbb al, al
and byte [0x4a7698], al
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x25c]
lea ecx, [ecx - 0x10]
call fcn.0040aa0b
lea eax, [ebp - 0x21c]
mov esi, 0x4a740c
push eax
mov ecx, esi
call fcn.0040a5c2
push str.drivers_
mov ecx, esi
call fcn.0041cb18
cmp dword [0x4a76e4], 0
je 0x41be3d
lea eax, [ebp - 0x21c]
mov ecx, 0x4a7408
push eax
call fcn.0040a5c2
xor eax, eax
lea ecx, [ebp - 0x21c]
mov esi, 0x104
mov word [ebp - 0x14], ax
push esi
mov word [ebp - 0x21c], ax
mov eax, dword [0x4a76e0]
push ecx
call eax
test eax, eax
je 0x41bd23
push 0x491d74
lea eax, [ebp - 0x21c]
push 0x105
push eax
call fcn.0046a8bd
add esp, 0xc
jmp 0x41be42
mov esi, 0x104
lea eax, [ebp - 0x21c]
mov ecx, 0x4a7404
push eax
call fcn.0040a5c2
xor eax, eax
mov word [ebp - 0x14], ax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21c]
push esi
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x250]
push eax
push 0
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x41bead
mov eax, dword [ebp - 0x24c]
add eax, dword [ebp - 0x23c]
mov ecx, dword [ebp - 0x248]
adc ecx, dword [ebp - 0x238]
mov dword [0x4a7708], eax
mov dword [0x4a770c], ecx
mov edx, 0x4a7490
lea ecx, [ebp - 0x21c]
call fcn.004221d1
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x260]
call fcn.0040a5c2
push 0x5c
pop eax
push eax
push 0x2f
lea ecx, [ebp - 0x260]
call fcn.00409396
push 0x5c
pop eax
push eax
push dword [ebp - 0x260]
call fcn.00454aca
pop ecx
pop ecx
test eax, eax
je 0x41bf4e
sub eax, dword [ebp - 0x260]
sar eax, 1
cmp eax, 0xffffffff
je 0x41bf4e
inc eax
lea ecx, [ebp - 0x260]
push eax
lea eax, [ebp - 0x25c]
push eax
call fcn.0040bbee
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x260]
push eax
call fcn.0040943e
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x25c]
lea ecx, [ecx - 0x10]
call fcn.0040aa0b
mov eax, dword [0x4a73b4]
lea ecx, [ebp - 0x260]
push dword [eax - 0xc]
push eax
call fcn.0040bd07
jmp 0x41bf5e
push 0x4a73b4
lea ecx, [ebp - 0x260]
call fcn.0040943e
push dword [ebp - 0x260]
xor eax, eax
push esi
mov word [ebp - 0x14], ax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21c]
push eax
push 0x48eb74
push str.Registry
push str.Product
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0x4a74a0
mov edx, 0x4a749c
lea ecx, [ebp - 0x21c]
call fcn.004215af
pop ecx
call fcn.0040897b
test eax, eax
je 0x41bfc3
push dword [ebp - 0x264]
push str.Unable_to_load_product_config__gle_u
call fcn.0041defb
pop ecx
jmp 0x41c053
push dword [0x4a74f4]
push str.Current_version:__d
call fcn.0041defb
push dword [0x4a74f8]
push str.Current_update_version:__d
call fcn.0041defb
mov eax, dword [0x4a7518]
add esp, 0x10
cmp dword [eax - 0xc], 0
je 0x41bffe
push eax
push str.Current_build_version:__s
call fcn.0041defb
pop ecx
pop ecx
cmp byte [0x4a73e4], 0
mov ecx, str.Instup
mov eax, str.Icarus
cmove eax, ecx
push eax
push str.Installer:__s
call fcn.0041defb
push dword [0x4a74c8]
push str.Guid:__s
call fcn.0041defb
push dword [0x4a74ec]
push str.Midex:__s
call fcn.0041defb
add esp, 0x18
cmp byte [0x4a7698], 0
jne 0x41c054
push str.Sha256_driver_signatures_are_NOT_SUPPORTED
call fcn.0041defb
pop ecx
mov al, byte [0x4a7438]
lea ecx, [ebp - 0x25c]
push 0x4a73b4
mov edx, 0x4a74ac
mov byte [ebp - 0x26b], al
call fcn.0041ae36
pop ecx
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x260]
push eax
call fcn.0040943e
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x25c]
lea ecx, [ecx - 0x10]
call fcn.0040aa0b
mov eax, dword [ebp - 0x260]
cmp dword [eax - 0xc], 0
je 0x41c765
mov ecx, eax
call fcn.0041facf
test al, al
je 0x41c759
push 0x10002
call fcn.00461b84
mov edi, eax
mov dword [ebp - 0x288], edi
pop ecx
test edi, edi
jne 0x41c0dc
mov dword [ebp - 0x264], 8
jmp 0x41ca18
xor eax, eax
mov dword [edi + 0xfffe], eax
mov dword [edi], eax
push dword [ebp - 0x260]
push 0x7fff
push edi
push str.Config
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
push edi
lea ecx, [ebp - 0x25c]
mov ebx, edi
call fcn.0040948c
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0x25c]
cmp dword [eax - 0xc], 0
je 0x41c741
push 0x5c
pop edi
lea ecx, [ebp - 0x258]
call fcn.0040aa2d
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x254]
call fcn.0040aa2d
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x25c]
mov eax, dword [ebp - 0x25c]
mov eax, dword [eax - 0xc]
lea ebx, [ebx + eax*2]
add ebx, 2
call fcn.0041aee1
mov ecx, eax
call fcn.0040930a
push 0
push 0x3d
lea ecx, [ebp - 0x25c]
call fcn.0041cab5
mov esi, eax
cmp esi, 0xffffffff
jne 0x41c18e
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x254]
lea ecx, [ecx - 0x10]
call fcn.0040aa0b
jmp 0x41c708
push esi
lea eax, [ebp - 0x280]
push eax
lea ecx, [ebp - 0x25c]
call fcn.0040bbee
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x258]
push eax
call fcn.0040943e
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x280]
lea ecx, [ecx - 0x10]
call fcn.0040aa0b
lea ecx, [ebp - 0x258]
call fcn.0041aee1
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0x284]
push eax
lea ecx, [ebp - 0x25c]
call fcn.00416bff
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x254]
push eax
call fcn.0040943e
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x284]
lea ecx, [ecx - 0x10]
call fcn.0040aa0b
lea ecx, [ebp - 0x254]
call fcn.0040930a
push str.IniDescriptor
push dword [ebp - 0x258]
call fcn.0045d493
pop ecx
pop ecx
test eax, eax
jne 0x41c25b
lea eax, [ebp - 0x254]
mov esi, 0x4a73f0
push eax
mov ecx, esi
call fcn.0040943e
push 0x2f
push edi
mov ecx, esi
call fcn.00409396
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x254]
lea ecx, [ecx - 0x10]
call fcn.0040aa0b
jmp 0x41c708
push str.XmlDescriptor
push dword [ebp - 0x258]
call fcn.0045d493
pop ecx
pop ecx
test eax, eax
jne 0x41c2a5
lea eax, [ebp - 0x254]
mov esi, 0x4a73f4
push eax
mov ecx, esi
call fcn.0040943e
push 0x2f
push edi
mov ecx, esi
call fcn.00409396
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x254]
lea ecx, [ecx - 0x10]
call fcn.0040aa0b
jmp 0x41c708
push str.ConnectionCheck
push dword [ebp - 0x258]
call fcn.0045d493
pop ecx
pop ecx
test eax, eax
jne 0x41c2e3
lea eax, [ebp - 0x254]
mov ecx, 0x4a73f8
push eax
call fcn.0040943e
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x254]
lea ecx, [ecx - 0x10]
call fcn.0040aa0b
jmp 0x41c708
push str.TemporaryDir
push dword [ebp - 0x258]
call fcn.0045d493
pop ecx
pop ecx
test eax, eax
jne 0x41c335
lea eax, [ebp - 0x254]
mov esi, 0x4a73fc
push eax
mov ecx, esi
call fcn.0040943e
push edi
push 0x2f
mov ecx, esi
call fcn.00409396
xor eax, eax
inc eax
mov byte [0x4a7400], al
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x254]
lea ecx, [ecx - 0x10]
call fcn.0040aa0b
jmp 0x41c708
push str.ConnectivityTimeout
push dword [ebp - 0x258]
call fcn.0045d493
pop ecx
pop ecx
test eax, eax
jne 0x41c37d
push dword [ebp - 0x254]
call fcn.0046a8c8
pop ecx
test eax, eax
mov ecx, 0xea60
cmove eax, ecx
mov dword [0x4a7420], eax
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x254]
lea ecx, [ecx - 0x10]
call fcn.0040aa0b
jmp 0x41c708
push str.ConnectivityStep
push dword [ebp - 0x258]
call fcn.0045d493
pop ecx
pop ecx
test eax, eax
jne 0x41c3c8
push dword [ebp - 0x254]
call fcn.0046a8c8
pop ecx
cmp eax, 0x4e20
mov ecx, 0x1388
cmovb eax, ecx
mov dword [0x4a7424], eax
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x254]
lea ecx, [ecx - 0x10]
call fcn.0040aa0b
jmp 0x41c708
push str.ConnectionTimeout
push dword [ebp - 0x258]
call fcn.0045d493
pop ecx
pop ecx
test eax, eax
jne 0x41c410
push dword [ebp - 0x254]
call fcn.0046a8c8
pop ecx
test eax, eax
mov ecx, 0x7530
cmove eax, ecx
mov dword [0x4a7428], eax
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x254]
lea ecx, [ecx - 0x10]
call fcn.0040aa0b
jmp 0x41c708
push str.CopyBufferSize
push dword [ebp - 0x258]
call fcn.0045d493
pop ecx
pop ecx
test eax, eax
jne 0x41c466
push dword [ebp - 0x254]
call fcn.0046a8c8
mov dword [0x4a7430], eax
pop ecx
cmp eax, 0x400
jb 0x41c445
cmp eax, 0x1000000
jbe 0x41c44f
mov dword [0x4a7430], 0x10000
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x254]
lea ecx, [ecx - 0x10]
call fcn.0040aa0b
jmp 0x41c708
cmp byte [ebp - 0x26b], 0
jne 0x41c5f0
push str.ProxyEnabled
push dword [ebp - 0x258]
call fcn.0045d493
pop ecx
pop ecx
test eax, eax
jne 0x41c4b5
push dword [ebp - 0x254]
call fcn.0046a8c8
test eax, eax
pop ecx
setne byte [0x4a7438]
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x254]
lea ecx, [ecx - 0x10]
call fcn.0040aa0b
jmp 0x41c708
push str.ProxyAddress
push dword [ebp - 0x258]
call fcn.0045d493
pop ecx
pop ecx
test eax, eax
jne 0x41c4f3
lea eax, [ebp - 0x254]
mov ecx, 0x4a743c
push eax
call fcn.0040943e
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x254]
lea ecx, [ecx - 0x10]
call fcn.0040aa0b
jmp 0x41c708
push str.ProxyPort
push dword [ebp - 0x258]
call fcn.0045d493
pop ecx
pop ecx
test eax, eax
jne 0x41c532
push dword [ebp - 0x254]
call fcn.0046a8c8
pop ecx
mov word [0x4a7440], ax
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x254]
lea ecx, [ecx - 0x10]
call fcn.0040aa0b
jmp 0x41c708
push str.ProxyCredentialsEnabled
push dword [ebp - 0x258]
call fcn.0045d493
pop ecx
pop ecx
test eax, eax
jne 0x41c574
push dword [ebp - 0x254]
call fcn.0046a8c8
test eax, eax
pop ecx
setne byte [0x4a7442]
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x254]
lea ecx, [ecx - 0x10]
call fcn.0040aa0b
jmp 0x41c708
push str.ProxyUsername
push dword [ebp - 0x258]
call fcn.0045d493
pop ecx
pop ecx
test eax, eax
jne 0x41c5b2
lea eax, [ebp - 0x254]
mov ecx, 0x4a7444
push eax
call fcn.0040943e
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x254]
lea ecx, [ecx - 0x10]
call fcn.0040aa0b
jmp 0x41c708
push str.ProxyPassword
push dword [ebp - 0x258]
call fcn.0045d493
pop ecx
pop ecx
test eax, eax
jne 0x41c5f0
lea eax, [ebp - 0x254]
mov ecx, 0x4a7448
push eax
call fcn.0040943e
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x254]
lea ecx, [ecx - 0x10]
call fcn.0040aa0b
jmp 0x41c708
push str.LastAppliedPatchId
push dword [ebp - 0x258]
call fcn.0045d493
pop ecx
pop ecx
test eax, eax
jne 0x41c62e
push dword [ebp - 0x254]
call fcn.0046a8c8
pop ecx
mov dword [0x4a7460], eax
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x254]
lea ecx, [ecx - 0x10]
call fcn.0040aa0b
jmp 0x41c708
push str.JobIntervalHours
push dword [ebp - 0x258]
call fcn.0045d493
pop ecx
pop ecx
test eax, eax
jne 0x41c66c
push dword [ebp - 0x254]
call fcn.0046a8c8
pop ecx
mov dword [0x4a73ec], eax
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x254]
lea ecx, [ecx - 0x10]
call fcn.0040aa0b
jmp 0x41c708
push str.UseOwnDnsQuery
push dword [ebp - 0x258]
call fcn.0045d493
pop ecx
pop ecx
test eax, eax
jne 0x41c6ab
push dword [ebp - 0x254]
call fcn.0046a8c8
test eax, eax
pop ecx
setne byte [0x4a742c]
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x254]
lea ecx, [ecx - 0x10]
call fcn.0040aa0b
jmp 0x41c708
push str.DisableBits
push dword [ebp - 0x258]
call fcn.0045d493
pop ecx
pop ecx
test eax, eax
jne 0x41c6f6
push dword [ebp - 0x254]
call fcn.0046a8c8
pop ecx
movzx ecx, byte [0x4a7468]
test eax, eax
push 1
pop eax
cmovne ecx, eax
mov byte [0x4a7468], cl
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x254]
lea ecx, [ecx - 0x10]
call fcn.0040aa0b
jmp 0x41c708
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x254]
lea ecx, [ecx - 0x10]
call fcn.0040aa0b
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x258]
add ecx, 0xfffffff0
call fcn.0040aa0b
push ebx
lea ecx, [ebp - 0x25c]
call fcn.0040a5c2
mov eax, dword [ebp - 0x25c]
cmp dword [eax - 0xc], 0
jne 0x41c122
mov edi, dword [ebp - 0x288]
mov esi, 0x104
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x25c]
lea ecx, [ecx - 0x10]
call fcn.0040aa0b
mov ebx, dword [ebp - 0x268]
mov eax, dword [ebp - 0x260]
cmp dword [eax - 0xc], 0
jne 0x41c775
push 0x4a73b4
lea ecx, [ebp - 0x260]
call fcn.0040943e
lea eax, [ebp - 0x260]
mov ecx, 0x4a7414
push eax
call fcn.0040943e
mov ecx, dword [0x4a73fc]
cmp dword [ecx - 0xc], 0
jne 0x41c805
mov eax, dword [0x4a74a8]
cmp dword [eax - 0xc], 0
je 0x41c7ff
push str.Setup_
mov edx, 0x4a74a8
lea ecx, [ebp - 0x268]
call fcn.00409299
pop ecx
mov byte [ebp - 4], 0x3e
mov ecx, 0x4a73fc
push eax
call fcn.0040943e
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x268]
lea ecx, [ecx - 0x10]
call fcn.0040aa0b
mov ecx, dword [0x4a73fc]
call fcn.0041facf
test al, al
jne 0x41c7f1
push 0
push dword [0x4a73fc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [0x4a73fc]
xor eax, eax
inc eax
mov byte [0x4a7400], al
cmp dword [ecx - 0xc], 0
je 0x41c80e
call fcn.0041facf
test al, al
jne 0x41c87f
xor eax, eax
mov byte [0x4a7400], 0
mov word [ebp - 0x14], ax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x41c86a
mov word [ebp - 0x14], ax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x41c86a
push 0x491d5c
lea eax, [ebp - 0x21c]
push 0x105
push eax
call fcn.0046a907
add esp, 0xc
lea eax, [ebp - 0x21c]
mov esi, 0x4a73fc
push eax
mov ecx, esi
call fcn.0040a5c2
jmp 0x41c884
mov esi, 0x4a73fc
mov eax, dword [0x4a73fc]
mov eax, dword [eax - 0xc]
test eax, eax
je 0x41c8a1
dec eax
mov ecx, esi
push eax
call fcn.004094f2
push 0x5c
pop ecx
cmp ax, cx
je 0x41c8a9
push ecx
mov ecx, esi
call fcn.00409414
mov ecx, dword [0x4a73f0]
cmp dword [ecx - 0xc], 0
je 0x41c8bf
call fcn.0041cfb3
cmp eax, 1
jg 0x41c8ce
push 0x4a73c4
mov ecx, 0x4a73f0
call fcn.0040943e
mov ecx, dword [0x4a73f4]
cmp dword [ecx - 0xc], 0
je 0x41c8e4
call fcn.0041cfb3
cmp eax, 1
jg 0x41c8f3
push 0x4a73c8
mov ecx, 0x4a73f4
call fcn.0040943e
mov ecx, dword [0x4a73f8]
cmp dword [ecx - 0xc], 0
je 0x41c909
call fcn.0041cfb3
cmp eax, 1
jg 0x41c918
push str.http:__emupdate.avcdn.net_files_emupdate_pong.txt
mov ecx, 0x4a73f8
call fcn.0040a5c2
push 0x2f
push dword [0x4a73f0]
call fcn.00454aca
pop ecx
pop ecx
test eax, eax
je 0x41c96b
sub eax, dword [0x4a73f0]
sar eax, 1
cmp eax, 0xffffffff
je 0x41c96b
push eax
lea eax, [ebp - 0x268]
mov ecx, 0x4a73f0
push eax
call fcn.0040bbee
mov byte [ebp - 4], 0x40
mov ecx, 0x4a7418
push eax
call fcn.0040943e
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x268]
lea ecx, [ecx - 0x10]
call fcn.0040aa0b
lea ecx, [ebp - 0x268]
call fcn.004222b1
mov byte [ebp - 4], 0x42
mov ecx, 0x4a741c
push eax
call fcn.0040943e
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x268]
lea ecx, [ecx - 0x10]
call fcn.0040aa0b
push dword [0x4a741c]
push str.Geo:__s
call fcn.0041defb
call fcn.0041fc7b
movzx ecx, byte [0x4a7466]
test eax, eax
push 1
pop eax
cmovne ecx, eax
mov byte [0x4a7466], cl
call fcn.00420fed
and dword [ebp - 0x25c], 0
lea eax, [ebp - 0x290]
push eax
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x268], 4
push eax
lea eax, [ebp - 0x268]
mov edx, str.LastAppliedPatchId
push eax
xor ecx, ecx
call fcn.004206b1
add esp, 0x14
test eax, eax
jne 0x41ca13
mov ecx, dword [ebp - 0x25c]
push ecx
mov eax, dword [ecx]
mov dword [0x4a7460], eax
call fcn.0045d3d7
pop ecx
call fcn.00421042
push ebx
call fcn.0045d3d7
pop ecx
test edi, edi
je 0x41ca2a
push edi
call fcn.0045d3d7
pop ecx
mov esi, dword [ebp - 0x264]
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x27c]
lea ecx, [ecx - 0x10]
call fcn.0040aa0b
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x270]
lea ecx, [ecx - 0x10]
call fcn.0040aa0b
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x28c]
lea ecx, [ecx - 0x10]
call fcn.0040aa0b
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x274]
lea ecx, [ecx - 0x10]
call fcn.0040aa0b
xor eax, eax
inc eax
mov byte [ebp - 4], al
mov ecx, dword [ebp - 0x278]
lea ecx, [ecx - 0x10]
call fcn.0040aa0b
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x260]
add ecx, 0xfffffff0
call fcn.0040aa0b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x29c]
call fcn.0041e418
mov eax, esi
call fcn.004542b4
ret