Function at 0x403350
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40f40b
mov eax, dword fs:[0]
push eax
mov eax, 0x1064
call fcn.0040f0a0
mov eax, dword [0x416040]
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 edi, edx
mov esi, ecx
push 0
push 0
push 0
push 1
push str.AutoupdateApp
mov dword [ebp - 0x1054], 0
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebx, eax
mov dword [ebp - 0x104c], ebx
test ebx, ebx
jne 0x4033c9
push 0x10
push str.Error
push str.Failed_to_initialize_WinINet.
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
xor al, al
jmp 0x40365f
cmp dword [esi + 0x14], 7
jbe 0x4033d1
mov esi, dword [esi]
push 0
push 0x80000000
push 0
push 0
push esi
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov esi, eax
test esi, esi
jne 0x40340b
push 0x10
push str.Error
push str.Failed_to_open_URL.
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor al, al
jmp 0x40365f
mov byte [ebp - 0x1050], 0
lea ecx, [ebp - 0x1044]
push dword [ebp - 0x1050]
mov edx, edi
call fcn.0040a200
add esp, 4
lea ecx, [ebp - 0x1044]
mov dword [ebp - 4], 0
call fcn.004026d0
test al, al
jne 0x403549
lea eax, [ebp - 0x102c]
push eax
lea ecx, [ebp - 0x1044]
call fcn.00401c40
lea ecx, [ebp - 0x102c]
mov byte [ebp - 4], 1
call fcn.00402650
test al, al
jne 0x4034a5
mov byte [ebp - 0x1050], al
lea ecx, [ebp - 0x106c]
push dword [ebp - 0x1050]
call fcn.0040a260
add esp, 4
mov dword [ebp - 0x1054], 1
lea eax, [ebp - 0x106c]
lea ecx, [ebp - 0x102c]
push eax
call fcn.00401a40
test eax, eax
je 0x4034a5
mov bl, 1
jmp 0x4034a7
xor bl, bl
test byte [ebp - 0x1054], 1
je 0x4034f2
mov ecx, dword [ebp - 0x1058]
cmp ecx, 7
jbe 0x4034f2
mov edx, dword [ebp - 0x106c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4034e8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4034e8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0040e363
add esp, 8
test bl, bl
je 0x403501
lea ecx, [ebp - 0x102c]
call fcn.00402ad0
mov ecx, dword [ebp - 0x1018]
cmp ecx, 7
jbe 0x403543
mov edx, dword [ebp - 0x102c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403539
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x403539
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0040e363
add esp, 8
mov ebx, dword [ebp - 0x104c]
cmp dword [edi + 0x14], 7
jbe 0x403551
mov edi, dword [edi]
push 0x4106c0
lea eax, [ebp - 0x1048]
push edi
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
add esp, 0xc
cmp dword [ebp - 0x1048], 0
jne 0x403597
push 0x10
push str.Error
push str.Failed_to_create_local_file.
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebx
call esi
xor bl, bl
jmp 0x40361b
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1010]
push eax
push esi
call edi
test eax, eax
je 0x4035f9
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
nop dword [eax]
mov eax, dword [ebp - 0x1014]
test eax, eax
je 0x4035f9
push dword [ebp - 0x1048]
push eax
lea eax, [ebp - 0x1010]
push 1
push eax
call ebx
add esp, 0x10
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1010]
push eax
push esi
call edi
test eax, eax
jne 0x4035c0
push dword [ebp - 0x1048]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x104c]
call esi
mov bl, 1
mov ecx, dword [ebp - 0x1030]
cmp ecx, 7
jbe 0x40365d
mov edx, dword [ebp - 0x1044]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403653
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x403653
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0040e363
add esp, 8
mov al, bl
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.0040e325
mov esp, ebp
pop ebp
ret