Function at 0x439180
Capabilities:
Check http status code
Write file on windows

Disassembly:
push 0x84
mov eax, 0x43ccee
call fcn.0041bbb6
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x50], ebx
lea eax, [edi + 0x88]
push 0x445044
push eax
mov dword [ebp - 4], 1
mov dword [ebp - 0x34], eax
call fcn.0040199a
mov eax, dword [edi]
xor ecx, ecx
mov word [eax], cx
mov dword [edi + 0x80], ebx
call fcn.0043a77b
mov esi, eax
mov dword [ebp - 0x44], esi
cmp esi, ebx
jne 0x439232
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x6c]
call fcn.0042f674
push eax
lea eax, [ebp - 0x88]
push str.Error_initializing_inet_
push eax
mov byte [ebp - 4], 2
call fcn.00401c9a
add esp, 0xc
push dword [ebp - 0x34]
mov byte [ebp - 4], 3
call fcn.004018f5
push ebx
push 1
lea esi, [ebp - 0x88]
call fcn.0040115a
push ebx
push 1
lea esi, [ebp - 0x6c]
mov byte [ebp - 4], 1
call fcn.0040115a
push 0x445568
mov ecx, dword [ebp - 0x30]
call fcn.0040189b
jmp 0x4396a4
lea eax, [ebp + 0x44]
push eax
push 2
push esi
call fcn.0043a74a
lea eax, [ebp + 0x44]
push eax
push 5
push esi
call fcn.0043a74a
lea eax, [ebp + 0x44]
push eax
push 6
push esi
call fcn.0043a74a
add esp, 0x24
cmp dword [edi + 0x3c], 8
jb 0x439264
mov edx, dword [edi + 0x28]
jmp 0x439267
lea edx, [edi + 0x28]
cmp dword [edi + 0x20], 8
jb 0x439272
mov ecx, dword [edi + 0xc]
jmp 0x439275
lea ecx, [edi + 0xc]
cmp dword [edi + 0x58], 8
jb 0x439280
mov eax, dword [edi + 0x44]
jmp 0x439283
lea eax, [edi + 0x44]
push edx
push ecx
movzx ecx, word [edi + 0x78]
push ecx
push eax
push esi
call fcn.0043a70f
add esp, 0x14
mov dword [ebp - 0x40], eax
cmp eax, ebx
jne 0x4392ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x88]
call fcn.0042f674
push eax
lea eax, [ebp - 0x6c]
push str.Error_connecting_
push eax
mov byte [ebp - 4], 4
call fcn.00401c9a
add esp, 0xc
push dword [ebp - 0x34]
mov byte [ebp - 4], 5
call fcn.004018f5
push ebx
push 1
lea esi, [ebp - 0x6c]
call fcn.0040115a
push ebx
push 1
lea esi, [ebp - 0x88]
mov byte [ebp - 4], 1
call fcn.0040115a
push dword [ebp - 0x44]
call fcn.0043a7e6
mov dword [esp], 0x445568
jmp 0x439225
cmp dword [edi + 0x74], 8
jb 0x43930a
mov eax, dword [edi + 0x60]
jmp 0x43930d
lea eax, [edi + 0x60]
push eax
push dword [edi + 0xd0]
push dword [ebp - 0x40]
call fcn.0043a7aa
add esp, 0xc
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jne 0x43938d
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x88]
call fcn.0042f674
push eax
lea eax, [ebp - 0x6c]
push str.Error_creating_request_
push eax
mov byte [ebp - 4], 6
call fcn.00401c9a
add esp, 0xc
mov byte [ebp - 4], 7
push dword [ebp - 0x34]
call fcn.004018f5
push ebx
push 1
lea esi, [ebp - 0x6c]
call fcn.0040115a
push ebx
push 1
lea esi, [ebp - 0x88]
mov byte [ebp - 4], 1
call fcn.0040115a
push dword [ebp - 0x40]
call fcn.0043a7e6
push dword [ebp - 0x44]
call fcn.0043a7e6
pop ecx
pop ecx
jmp 0x439220
cmp dword [ebp + 0x40], 0x10
mov ecx, dword [ebp + 0x2c]
jae 0x439399
lea ecx, [ebp + 0x2c]
cmp dword [ebp + 0x24], 8
mov eax, dword [ebp + 0x10]
jae 0x4393a5
lea eax, [ebp + 0x10]
push dword [ebp + 0x3c]
push ecx
push dword [ebp + 0x20]
push eax
push dword [ebp - 0x3c]
call fcn.0043a6da
add esp, 0x14
test eax, eax
jne 0x4393ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x88]
call fcn.0042f674
push eax
lea eax, [ebp - 0x6c]
push str.Error_sending_request_
push eax
mov byte [ebp - 4], 8
call fcn.00401c9a
add esp, 0xc
mov byte [ebp - 4], 9
jmp 0x439351
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x38]
push eax
push dword [edi]
mov esi, 0x2000
push 0x16
push dword [ebp - 0x3c]
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x48], ebx
call fcn.0043a6a5
mov eax, dword [edi + 0xc8]
add esp, 0x14
cmp eax, ebx
je 0x439434
push ebx
push edi
call eax
pop ecx
pop ecx
test al, al
jne 0x439434
push str.User_abort__info_event_
push dword [ebp - 0x34]
call fcn.0040199a
jmp 0x439376
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], 0xf
call fcn.004017e9
push ebx
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0x20000013
push dword [ebp - 0x3c]
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x8c], 4
call fcn.0043a6a5
add esp, 0x14
test eax, eax
jne 0x4394a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x88]
call fcn.0042f674
push eax
lea eax, [ebp - 0x6c]
push str.Error_getting_HTTP_status_
push eax
mov byte [ebp - 4], 0xb
call fcn.00401c9a
add esp, 0xc
mov byte [ebp - 4], 0xc
jmp 0x4394d7
mov eax, dword [ebp - 0x4c]
mov dword [edi + 0x80], eax
cmp eax, 0xc8
je 0x439501
lea ecx, [ebp - 0x88]
call fcn.0042f674
push eax
lea eax, [ebp - 0x6c]
push str.Error_HTTP_status
push eax
mov byte [ebp - 4], 0xd
call fcn.00401c9a
add esp, 0xc
mov byte [ebp - 4], 0xe
push dword [ebp - 0x34]
call fcn.004018f5
push ebx
push 1
lea esi, [ebp - 0x6c]
call fcn.0040115a
push ebx
push 1
lea esi, [ebp - 0x88]
mov byte [ebp - 4], 0xa
call fcn.0040115a
jmp 0x439672
push esi
call fcn.00418ea8
mov esi, eax
pop ecx
mov dword [ebp - 0x50], esi
cmp dword [edi + 0xb8], ebx
je 0x4395a0
lea eax, [edi + 0xa4]
cmp dword [eax + 0x18], 8
jb 0x43952a
mov eax, dword [eax + 4]
jmp 0x43952d
add eax, 4
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x48], eax
cmp eax, 0xffffffff
jne 0x4395a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x88]
call fcn.0042f674
push eax
lea eax, [ebp - 0x6c]
push str.Error_writing_file_
push eax
mov byte [ebp - 4], 0xf
call fcn.00401c9a
add esp, 0xc
push dword [ebp - 0x34]
mov byte [ebp - 4], 0x10
call fcn.004018f5
push ebx
push 1
lea esi, [ebp - 0x6c]
call fcn.0040115a
push ebx
push 1
lea esi, [ebp - 0x88]
mov byte [ebp - 4], 0xa
call fcn.0040115a
jmp 0x439669
cmp byte [edi + 0xc1], bl
jne 0x439669
jmp 0x4396d1
cmp dword [ebp - 0x38], ebx
je 0x439658
mov eax, dword [edi + 0xcc]
cmp eax, ebx
je 0x4395d4
push dword [ebp - 0x38]
push edi
call eax
pop ecx
pop ecx
test al, al
je 0x43971c
cmp dword [edi + 0xb8], ebx
je 0x4396c5
push ebx
lea eax, [ebp - 0x90]
push eax
push dword [ebp - 0x38]
push esi
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x439608
mov eax, dword [ebp - 0x90]
cmp eax, dword [ebp - 0x38]
je 0x4396d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x88]
call fcn.0042f674
push eax
lea eax, [ebp - 0x6c]
push str.Error_writing_file_
push eax
mov byte [ebp - 4], 0x13
call fcn.00401c9a
add esp, 0xc
mov byte [ebp - 4], 0x14
push dword [ebp - 0x34]
call fcn.004018f5
push ebx
push 1
lea esi, [ebp - 0x6c]
call fcn.0040115a
push ebx
push 1
lea esi, [ebp - 0x88]
mov byte [ebp - 4], 0xa
call fcn.0040115a
cmp dword [edi + 0xb8], ebx
je 0x439669
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x50]
call fcn.0041a0df
pop ecx
push dword [ebp - 0x3c]
call fcn.0043a7e6
push dword [ebp - 0x40]
call fcn.0043a7e6
push dword [ebp - 0x44]
call fcn.0043a7e6
mov ecx, dword [ebp - 0x30]
add esp, 0xc
lea eax, [ebp - 0x2c]
push eax
call fcn.0040141a
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401722
push ebx
push 1
lea esi, [ebp + 0xc]
call fcn.0040115a
push ebx
push 1
lea ecx, [ebp + 0x28]
call fcn.00401722
mov eax, dword [ebp - 0x30]
call fcn.0041bc39
ret 0x40
push dword [ebp - 0x38]
lea eax, [ebp - 0x2c]
push esi
call fcn.00406978
lea eax, [ebp - 0x38]
push eax
push esi
push dword [ebp - 0x3c]
mov dword [ebp - 0x38], ebx
call fcn.0043a671
add esp, 0xc
test eax, eax
jne 0x4395b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x88]
call fcn.0042f674
push eax
lea eax, [ebp - 0x6c]
push str.Error_receiving_data_
push eax
mov byte [ebp - 4], 0x11
call fcn.00401c9a
add esp, 0xc
mov byte [ebp - 4], 0x12
jmp 0x439633
push str.User_abort__processing_event_
push dword [ebp - 0x34]
call fcn.0040199a
jmp 0x439658