Function at 0x437ae0
Capabilities:
Check http status code
Download and write a file
Get http content length
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ecx
push ebx
xor ebx, ebx
push esi
mov esi, ecx
cmp dword [esp + 0x10], ebx
jne 0x437b09
mov eax, dword [esi + 4]
mov dword [esi + 0x20], 6
mov ecx, dword [eax + 0x20]
pop esi
pop ebx
add esp, 4
mov dword [esp + 4], ecx
jmp dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [esi + 0x90], ebx
jne 0x437ba3
push 0x1000
call fcn.0043d888
add esp, 4
mov dword [esi + 0x90], eax
cmp eax, ebx
jne 0x437b46
mov edx, dword [esi + 4]
mov dword [esi + 0x20], 6
mov eax, dword [edx + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop esi
pop ebx
pop ecx
ret 4
mov eax, dword [esi + 0x48]
push ebx
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x18]
push edx
push 0x20000013
push eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
cmp eax, ebx
jne 0x437b8a
mov ecx, dword [esi + 4]
mov dword [esi + 0x20], 6
mov edx, dword [ecx + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop esi
pop ebx
pop ecx
ret 4
cmp dword [esp + 0x10], 0xc8
je 0x437ba3
push 6
mov ecx, esi
call fcn.00437170
pop esi
pop ebx
pop ecx
ret 4
cmp dword [esi + 0x3c], ebx
jne 0x437bec
mov ecx, esi
call fcn.00437a20
mov eax, dword [esi + 0x28]
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x3c], eax
cmp eax, 0xffffffff
jne 0x437bec
mov eax, dword [esi + 4]
mov dword [esi + 0x20], 6
mov ecx, dword [eax + 0x20]
pop esi
pop ebx
add esp, 4
mov dword [esp + 4], ecx
jmp dword [sym.imp.KERNEL32.dll_SetEvent]
push ebp
mov ebp, dword [sym.imp.WININET.dll_InternetReadFile]
push edi
lea edi, [esi + 0x94]
lea ebx, [ebx]
mov eax, dword [edi]
cmp eax, ebx
jbe 0x437c30
mov ecx, dword [esi + 0x3c]
push ebx
lea edx, [esp + 0x1c]
push edx
push eax
mov eax, dword [esi + 0x90]
push eax
push ecx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [esp + 0x18]
add dword [esi + 0x98], edx
cmp eax, ebx
je 0x437c9b
mov eax, dword [esi + 0x90]
mov ecx, dword [esi + 0x48]
push edi
push 0x1000
push eax
push ecx
call ebp
cmp eax, ebx
je 0x437cb7
cmp dword [edi], ebx
jne 0x437c00
mov eax, dword [esi + 0x48]
push ebx
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push edx
push 0x20000005
push eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x437c9b
mov ecx, dword [esp + 0x18]
cmp ecx, dword [esi + 0x98]
jne 0x437c9b
push 1
mov ecx, esi
call fcn.004371c0
push 5
mov ecx, esi
call fcn.00437170
pop edi
pop ebp
pop esi
pop ebx
pop ecx
ret 4
mov edx, dword [esi + 4]
mov dword [esi + 0x20], 6
mov eax, dword [edx + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
pop ebp
pop esi
pop ebx
pop ecx
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x437cd3
pop edi
pop ebp
mov dword [esi + 0x20], 4
pop esi
pop ebx
pop ecx
ret 4
push 6
mov ecx, esi
call fcn.00437170
pop edi
pop ebp
pop esi
pop ebx
pop ecx
ret 4