Function at 0x432a91
Capabilities:
Check http status code
Connect to http server
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Send data
Send http request
Write file on windows

Disassembly:
push 0x88
mov eax, 0x435a49
call fcn.00419786
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov edi, ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x54], ebx
lea esi, [edi + 0x88]
push 0x43bb70
push esi
mov dword [ebp - 4], 1
mov dword [ebp - 0x38], esi
call fcn.00401148
mov eax, dword [edi]
push ebx
push ebx
push ebx
xor ecx, ecx
push ebx
mov word [eax], cx
push 0x43e628
mov dword [edi + 0x80], ebx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jne 0x432b67
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x70]
push eax
lea ebx, [ebp - 0x30]
call fcn.004017a5
pop ecx
push eax
lea eax, [ebp - 0x8c]
push str.Error_initializing_inet_
push eax
mov byte [ebp - 4], 2
call fcn.0040181a
add esp, 0xc
push esi
mov byte [ebp - 4], 3
call fcn.0040106f
xor edi, edi
xor ebx, ebx
push edi
inc ebx
push ebx
lea esi, [ebp - 0x8c]
call fcn.00401295
push edi
push ebx
lea esi, [ebp - 0x70]
mov byte [ebp - 4], bl
call fcn.00401295
mov ecx, dword [ebp - 0x34]
push 0x43bfd0
call fcn.00404c55
push edi
push ebx
lea esi, [ebp + 0x10]
call fcn.00401295
push edi
push ebx
jmp 0x433044
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea ecx, [ebp + 0x48]
push ecx
push 2
push eax
call esi
push 4
lea eax, [ebp + 0x48]
push eax
push 5
push dword [ebp - 0x3c]
call esi
push 4
lea eax, [ebp + 0x48]
push eax
push 6
push dword [ebp - 0x3c]
call esi
push 8
pop esi
cmp dword [edi + 0x3c], esi
jb 0x432b9f
mov edx, dword [edi + 0x28]
jmp 0x432ba2
lea edx, [edi + 0x28]
cmp dword [edi + 0x20], esi
jb 0x432bac
mov ecx, dword [edi + 0xc]
jmp 0x432baf
lea ecx, [edi + 0xc]
cmp dword [edi + 0x58], esi
jb 0x432bb9
mov eax, dword [edi + 0x44]
jmp 0x432bbc
lea eax, [edi + 0x44]
push ebx
push ebx
push 3
push edx
push ecx
movzx ecx, word [edi + 0x78]
push ecx
push eax
push dword [ebp - 0x3c]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp - 0x48], eax
cmp eax, ebx
jne 0x432c40
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x8c]
push eax
lea ebx, [ebp - 0x30]
call fcn.004017a5
pop ecx
push eax
lea eax, [ebp - 0x70]
push str.Error_connecting_
push eax
mov byte [ebp - 4], 4
call fcn.0040181a
add esp, 0xc
push dword [ebp - 0x38]
mov byte [ebp - 4], 5
call fcn.0040106f
xor edi, edi
xor ebx, ebx
push edi
inc ebx
push ebx
lea esi, [ebp - 0x70]
call fcn.00401295
push edi
push ebx
lea esi, [ebp - 0x8c]
mov byte [ebp - 4], bl
call fcn.00401295
push dword [ebp - 0x3c]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x432b49
cmp dword [edi + 0x74], esi
jb 0x432c4a
mov eax, dword [edi + 0x60]
jmp 0x432c4d
lea eax, [edi + 0x60]
push ebx
push 0x80000000
push ebx
push ebx
push ebx
push eax
push dword [ebp - 0x30]
push dword [ebp - 0x48]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov esi, eax
mov dword [ebp - 0x4c], esi
cmp esi, ebx
jne 0x432cdb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x8c]
push eax
lea ebx, [ebp - 0x30]
call fcn.004017a5
pop ecx
push eax
lea eax, [ebp - 0x70]
push str.Error_creating_request_
push eax
mov byte [ebp - 4], 6
call fcn.0040181a
add esp, 0xc
mov byte [ebp - 4], 7
push dword [ebp - 0x38]
call fcn.0040106f
xor edi, edi
xor ebx, ebx
push edi
inc ebx
push ebx
lea esi, [ebp - 0x70]
call fcn.00401295
push edi
push ebx
lea esi, [ebp - 0x8c]
mov byte [ebp - 4], bl
call fcn.00401295
push dword [ebp - 0x48]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x3c]
call esi
jmp 0x432b49
cmp dword [ebp + 0x44], 0x10
mov ecx, dword [ebp + 0x30]
jae 0x432ce7
lea ecx, [ebp + 0x30]
cmp dword [ebp + 0x28], 8
mov eax, dword [ebp + 0x14]
jae 0x432cf3
lea eax, [ebp + 0x14]
push dword [ebp + 0x40]
push ecx
push ebx
push eax
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x432d3c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x8c]
push eax
lea ebx, [ebp - 0x30]
call fcn.004017a5
pop ecx
push eax
lea eax, [ebp - 0x70]
push str.Error_sending_request_
push eax
mov byte [ebp - 4], 8
call fcn.0040181a
add esp, 0xc
mov byte [ebp - 4], 9
jmp 0x432c9f
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x44]
push eax
push dword [edi]
mov dword [ebp - 0x44], 0x2000
push 0x16
push esi
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov dword [ebp - 0x30], ebx
call esi
mov eax, dword [edi + 0xc8]
cmp eax, ebx
je 0x432d9e
push ebx
push edi
call eax
pop ecx
pop ecx
test al, al
jne 0x432d9e
push str.User_abort__info_event_
push dword [ebp - 0x38]
call fcn.00401148
push dword [ebp - 0x48]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x3c]
call esi
mov ecx, dword [ebp - 0x34]
push 0x43bfd0
call fcn.00404c55
jmp 0x433036
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], 0xf
call fcn.0040540d
push ebx
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x50]
push eax
push 0x20000013
push dword [ebp - 0x4c]
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x90], 4
call esi
test eax, eax
jne 0x432e0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x8c]
push eax
lea ebx, [ebp - 0x30]
call fcn.004017a5
pop ecx
push eax
lea eax, [ebp - 0x70]
push str.Error_getting_HTTP_status_
push eax
mov byte [ebp - 4], 0xb
call fcn.0040181a
add esp, 0xc
mov byte [ebp - 4], 0xc
jmp 0x432e48
mov eax, dword [ebp - 0x50]
mov dword [edi + 0x80], eax
cmp eax, 0xc8
je 0x432e76
lea eax, [ebp - 0x8c]
push eax
lea ebx, [ebp - 0x50]
call fcn.004017a5
pop ecx
push eax
lea eax, [ebp - 0x70]
push str.Error_HTTP_status
push eax
mov byte [ebp - 4], 0xd
call fcn.0040181a
add esp, 0xc
mov byte [ebp - 4], 0xe
push dword [ebp - 0x38]
call fcn.0040106f
push 0
push 1
lea esi, [ebp - 0x70]
call fcn.00401295
push 0
push 1
lea esi, [ebp - 0x8c]
mov byte [ebp - 4], 0xa
call fcn.00401295
xor ebx, ebx
jmp 0x43300a
mov esi, 0x2000
push esi
call fcn.00416859
pop ecx
mov dword [ebp - 0x44], eax
cmp dword [edi + 0xb8], ebx
je 0x432f11
lea eax, [edi + 0xa4]
cmp dword [eax + 0x18], 8
jb 0x432ea2
mov eax, dword [eax + 4]
jmp 0x432ea5
add eax, 4
push 0x43e798
push eax
call fcn.00417d7b
pop ecx
pop ecx
mov dword [ebp - 0x30], eax
cmp eax, ebx
jne 0x432f11
call fcn.004187f5
lea ecx, [ebp - 0x8c]
push ecx
mov edx, eax
call fcn.00401805
pop ecx
push eax
lea eax, [ebp - 0x70]
push str.Error_writing_file_
push eax
mov byte [ebp - 4], 0xf
call fcn.0040181a
add esp, 0xc
push dword [ebp - 0x38]
mov byte [ebp - 4], 0x10
call fcn.0040106f
push ebx
push 1
lea esi, [ebp - 0x70]
call fcn.00401295
push ebx
push 1
lea esi, [ebp - 0x8c]
mov byte [ebp - 4], 0xa
call fcn.00401295
jmp 0x433001
cmp byte [edi + 0xc1], bl
jne 0x433001
jmp 0x432f6d
cmp dword [ebp - 0x40], ebx
je 0x432ff0
mov eax, dword [edi + 0xcc]
cmp eax, ebx
je 0x432f42
push dword [ebp - 0x40]
push edi
call eax
pop ecx
pop ecx
test al, al
je 0x432fe3
cmp dword [edi + 0xb8], ebx
je 0x432f5f
push dword [ebp - 0x30]
push 1
push dword [ebp - 0x40]
push dword [ebp - 0x44]
call fcn.004189a0
add esp, 0x10
jmp 0x432f6d
push dword [ebp - 0x40]
lea eax, [ebp - 0x2c]
push dword [ebp - 0x44]
call fcn.00405dd1
lea eax, [ebp - 0x40]
push eax
push esi
push dword [ebp - 0x44]
mov dword [ebp - 0x40], ebx
push dword [ebp - 0x4c]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x432f1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x8c]
push eax
lea ebx, [ebp - 0x54]
call fcn.004017a5
pop ecx
push eax
lea eax, [ebp - 0x70]
push str.Error_receiving_data_
push eax
mov byte [ebp - 4], 0x11
call fcn.0040181a
add esp, 0xc
push dword [ebp - 0x38]
mov byte [ebp - 4], 0x12
call fcn.0040106f
push 0
push 1
lea esi, [ebp - 0x70]
call fcn.00401295
push 0
push 1
lea esi, [ebp - 0x8c]
mov byte [ebp - 4], 0xa
call fcn.00401295
xor ebx, ebx
jmp 0x432ff0
push str.User_abort__processing_event_
push dword [ebp - 0x38]
call fcn.00401148
cmp dword [edi + 0xb8], ebx
je 0x433001
push dword [ebp - 0x30]
call fcn.00417fce
pop ecx
push dword [ebp - 0x44]
call fcn.00417caa
pop ecx
push dword [ebp - 0x4c]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x48]
call esi
push dword [ebp - 0x3c]
call esi
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x2c]
push eax
call fcn.00404f16
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040542c
push ebx
push 1
lea esi, [ebp + 0x10]
call fcn.00401295
push ebx
push 1
lea ecx, [ebp + 0x2c]
call fcn.0040542c
mov eax, dword [ebp - 0x34]
call fcn.00419809
ret 0x44