Function at 0x40fb90
Capabilities:
Receive http response
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43912b
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x448664]
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 eax, dword [ebp + 8]
mov esi, ecx
mov cl, byte [esi]
mov dword [ebp - 0x78], eax
mov byte [ebp - 0x65], 1
test cl, cl
jne 0x40fd3c
mov eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, edi
je 0x40fbe7
mov dl, byte [eax]
test dl, dl
jne 0x40fd3e
mov ecx, dword [esi + 8]
lea eax, [ebp - 0x6c]
push eax
push ecx
mov dword [ebp - 0x6c], edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x40fd2a
mov edx, dword [ebp - 0x6c]
push edx
call fcn.0041c7c6
mov ebx, eax
add esp, 4
mov dword [ebp - 0x74], ebx
cmp ebx, edi
je 0x40fd1a
mov ecx, dword [ebp - 0x6c]
mov edx, dword [esi + 8]
lea eax, [ebp - 0x70]
push eax
push ecx
push ebx
push edx
mov dword [ebp - 0x70], edi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x40fd11
mov edi, dword [esi + 0xf0]
mov eax, dword [ebp - 0x70]
add edi, dword [esi + 0x100]
mov ebx, dword [esi + 0xf4]
adc ebx, dword [esi + 0x104]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x78]
add eax, 0x10
push eax
mov dword [ebp - 0x80], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov ecx, edi
and ecx, ebx
cmp ecx, 0xffffffff
je 0x40fc88
mov edx, dword [ebp - 0x78]
mov eax, dword [edx + 8]
push 0
push 0
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov edx, dword [ebp - 0x7c]
mov eax, dword [ebp - 0x74]
push 0
lea ecx, [ebp - 0x84]
push ecx
mov ecx, dword [ebp - 0x78]
push edx
mov edx, dword [ecx + 8]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0x70]
add dword [esi + 0x100], ecx
mov ecx, dword [esi + 0xf8]
mov eax, dword [esi + 0xfc]
adc dword [esi + 0x104], 0
mov edx, ecx
or edx, eax
je 0x40fcf2
cmp dword [esi + 0x104], eax
jb 0x40fcf2
ja 0x40fceb
cmp dword [esi + 0x100], ecx
jb 0x40fcf2
mov dword [ebp - 0x6c], 0
mov ebx, dword [ebp - 0x74]
xor edi, edi
push ebx
call fcn.0041d783
add esp, 4
cmp dword [ebp - 0x6c], edi
je 0x40fd3e
mov cl, byte [esi]
test cl, cl
je 0x40fbd4
jmp 0x40fd3e
mov byte [ebp - 0x65], 0
mov dword [ebp - 0x6c], edi
jmp 0x40fcf7
mov byte [ebp - 0x65], 0
mov dword [ebp - 0x6c], edi
mov dword [esi + 0xc], 8
jmp 0x40fd3e
mov byte [ebp - 0x65], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xc], eax
mov dword [ebp - 0x6c], edi
jmp 0x40fd3e
xor edi, edi
mov edx, dword [esi + 8]
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push edx
call ebx
mov eax, dword [esi + 4]
push eax
call ebx
mov cl, byte [esi]
test cl, cl
jne 0x40fed5
mov eax, dword [ebp + 0xc]
cmp eax, edi
je 0x40fd6b
mov dl, byte [eax]
test dl, dl
jne 0x40fed5
lea eax, [ebp - 0x120]
push eax
call fcn.00404f30
mov dword [ebp - 4], 1
mov ecx, dword [esi + 0x104]
mov edx, dword [esi + 0x100]
mov eax, dword [esi + 0xfc]
push ecx
push edx
mov edx, dword [esi + 0xf4]
push str._finished:
push ecx
mov ecx, dword [esi + 0xf8]
push eax
mov eax, dword [esi + 0xf0]
push ecx
push edx
push eax
lea ecx, [ebp - 0x120]
push str.Received:
push ecx
call fcn.00408460
add esp, 8
push eax
call fcn.0040bc60
push eax
call fcn.00412a90
add esp, 4
push eax
call fcn.0040bc60
add esp, 4
push eax
call fcn.00408460
add esp, 8
push eax
call fcn.0040bc60
push 0x15
mov esi, 0xf
push str.HttpClient::DoReceive
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], edi
mov byte [ebp - 0x48], 0
call fcn.00406be0
mov byte [ebp - 4], 2
push 0xe
push str.HttpClient.cpp
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], edi
mov byte [ebp - 0x2c], 0
call fcn.00406be0
mov bl, 3
mov byte [ebp - 4], bl
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x120]
push eax
call fcn.00405030
mov byte [ebp - 4], 4
push eax
push 0x1d2
push 1
call fcn.00404d10
push eax
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x2c]
call fcn.00416210
mov byte [ebp - 4], bl
cmp dword [ebp - 0x50], 8
jb 0x40fe6b
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.0041d491
add esp, 4
xor edx, edx
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], edi
mov word [ebp - 0x64], dx
mov byte [ebp - 4], 2
mov ebx, 0x10
cmp dword [ebp - 0x18], ebx
jb 0x40fe95
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0041d491
add esp, 4
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], edi
mov byte [ebp - 0x2c], 0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x34], ebx
jb 0x40feb4
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.0041d491
add esp, 4
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], edi
mov byte [ebp - 0x48], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x120]
call fcn.00403150
mov al, byte [ebp - 0x65]
jmp 0x40fed7
xor al, al
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.0041cfa8
mov esp, ebp
pop ebp
ret 8