Function at 0x41bfd0
Capabilities:
Get file size
Initialize winhttp library
Prepare http request
Read file on windows
Receive http response
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x49da98
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x4c6184]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
xor esi, esi
push esi
push esi
push esi
push esi
push str.PLUS
mov dword [esp + 0x28], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], esi
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov ebx, eax
mov dword [esp + 0x28], ebx
cmp ebx, esi
je 0x41c255
mov eax, dword [ebp + 8]
push esi
push 0x50
push eax
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov edi, eax
mov dword [esp + 0x24], edi
cmp edi, esi
je 0x41c24e
mov ecx, dword [ebp + 0xc]
push esi
push esi
push esi
push esi
push ecx
push 0x4a9e34
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov ebx, eax
cmp ebx, esi
je 0x41c243
push esi
push esi
push esi
push esi
push esi
push esi
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
cmp eax, esi
je 0x41c238
push esi
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
cmp eax, esi
je 0x41c238
lea edx, [esp + 0x14]
push edx
push ebx
mov dword [esp + 0x1c], esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
mov eax, dword [esp + 0x14]
add dword [esp + 0x18], eax
inc eax
push eax
call fcn.004867fb
mov edi, eax
add esp, 4
cmp edi, esi
je 0x41c13a
mov eax, dword [esp + 0x14]
inc eax
push eax
push esi
push edi
call fcn.0048a470
mov edx, dword [esp + 0x20]
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
push edx
push edi
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
mov eax, dword [ebp + 0x10]
push esi
push 0x80
push 4
push esi
push esi
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41c124
push 2
push 0
push 0
push esi
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esp + 0x1c]
push 0
lea ecx, [esp + 0x24]
push ecx
push edx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.00486a80
xor esi, esi
add esp, 4
cmp dword [esp + 0x14], esi
jbe 0x41c13e
jmp 0x41c086
mov dword [esp + 0x14], esi
mov edi, dword [ebp + 0x14]
cmp edi, esi
je 0x41c238
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x50], esi
cmp eax, esi
je 0x41c238
push esi
push 0x80
push 3
push esi
push 1
push Ordinal_4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41c188
call fcn.004182f0
jmp 0x41c238
mov dword [esp + 0x34], esi
test esi, esi
je 0x41c238
lea ecx, [esp + 0x34]
call fcn.0041c900
lea eax, [esp + 0x40]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x3c], eax
cmp eax, 0xffffffff
jne 0x41c1bf
call fcn.004182f0
test eax, eax
js 0x41c1cb
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
mov edx, dword [esp + 0x2c]
push edx
call fcn.004867fb
add esp, 4
call fcn.0041c750
mov eax, dword [ebp + 0x14]
mov edi, dword [esp + 0x2c]
mov eax, dword [eax]
push 0
lea ecx, [esp + 0x24]
push ecx
push edi
push eax
push esi
mov dword [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41c207
call fcn.004182f0
xor ecx, ecx
cmp dword [esp + 0x20], edi
jne 0x41c215
cmp ecx, dword [esp + 0x30]
je 0x41c231
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov edi, dword [esp + 0x24]
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov ebx, dword [esp + 0x28]
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret