Function at 0x422410
Capabilities:
Check http status code
Create http request
Get http content length
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c0a91
mov eax, dword fs:[0]
push eax
mov eax, 0x1060
call fcn.004b9090
mov eax, dword [0x6554f4]
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 edi, ecx
mov eax, dword [ebp + 8]
push 0
push 0
push 0
push 0
mov dword [ebp - 0x1044], eax
mov eax, dword [ebp + 0x10]
push 0
mov dword [ebp - 0x1060], eax
mov dword [ebp - method.RC::RCInternetHandle.virtual_0], 0x626ecc
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebx, eax
mov dword [ebp - 0x1064], ebx
push 4
lea eax, [ebp - 0x1058]
mov dword [ebp - 4], 0
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push eax
push 2
push ebx
mov dword [ebp - 0x1058], 0xbb8
call esi
push 4
lea eax, [ebp - 0x1058]
mov dword [ebp - 0x1058], 5
push eax
push 3
push ebx
call esi
mov dword [ebp - 0x104c], 0
mov dword [ebp - method.RC::RCHttpFile.virtual_0], vtable.RC::RCHttpFile.0
mov dword [ebp - 0x1048], 0
mov eax, dword [ebp - 0x1060]
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x4224e7
mov edx, dword [eax]
jmp 0x4224e9
mov edx, eax
xor eax, eax
mov dword [ebp - 0x1014], 7
mov dword [ebp - 0x1018], 0
mov word [ebp - 0x1028], ax
cmp word [edx], ax
jne 0x42250f
xor ecx, ecx
jmp 0x422523
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x422514
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x1028]
call fcn.00420960
lea eax, [ebp - 0x1028]
mov byte [ebp - 4], 2
push eax
push ebx
lea ecx, [ebp - 0x1050]
call fcn.00423b70
test al, al
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1014]
sete byte [ebp - 0x1039]
cmp eax, 8
jb 0x422572
inc eax
lea ecx, [ebp - 0x1028]
push eax
push dword [ebp - 0x1028]
call fcn.00420cf0
cmp byte [ebp - 0x1039], 0
mov eax, dword [ebp - 0x104c]
je 0x4225e8
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - method.RC::RCHttpFile.virtual_0], vtable.RC::RCHttpFile.0
test eax, eax
je 0x4225a0
push eax
call esi
xor eax, eax
mov dword [ebp - 0x104c], eax
mov ecx, dword [ebp - 0x1048]
test ecx, ecx
je 0x4225bd
push ecx
call esi
mov eax, dword [ebp - 0x104c]
mov dword [ebp - 0x1048], 0
mov dword [ebp - method.RC::RCInternetHandle.virtual_0], vtable.RC::RCInternetHandle.0
test eax, eax
je 0x4225d8
push eax
call esi
mov dword [ebp - 0x104c], 0
test ebx, ebx
je 0x42297d
push ebx
call esi
jmp 0x42297d
mov dword [ebp - 0x1054], 0
mov dword [ebp - 0x1058], 4
test eax, eax
je 0x42294c
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
lea ecx, [ebp - 0x1058]
push 0
push ecx
lea ecx, [ebp - 0x1054]
push ecx
push 0x20000013
push eax
call esi
test eax, eax
setne al
test al, al
je 0x42294c
cmp dword [ebp - 0x1054], 0xc8
setne al
test al, al
jne 0x42294c
mov eax, dword [ebp - 0x104c]
test eax, eax
je 0x42294c
push 0
lea ecx, [ebp - 0x1058]
mov dword [ebp - 0x1040], 0
push ecx
lea ecx, [ebp - 0x1040]
mov dword [ebp - 0x1058], 4
push ecx
push 0x20000005
push eax
call esi
test eax, eax
je 0x42294c
mov esi, dword [ebp - 0x1040]
mov dword [ebp - 0x1058], 0
test esi, esi
je 0x42294c
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov dword [ebp - 0x1058], eax
test ecx, ecx
je 0x4226f3
mov eax, dword [ecx]
sub esp, 8
mov ebx, dword [ebp - 0x1060]
xorps xmm0, xmm0
movsd qword [esp], xmm0
push 0
push 0
push ebx
call dword [eax + 0xc]
mov ecx, dword [edi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [edi]
push dword [ebp - 0x1058]
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [edi]
sub esp, 8
xorps xmm0, xmm0
mov eax, dword [ecx]
movsd qword [esp], xmm0
push 0
push esi
push ebx
call dword [eax + 0xc]
push 0x1000
lea eax, [ebp - 0x1010]
mov dword [ebp - 0x1054], 0
push 0
push eax
call fcn.005991a0
add esp, 0xc
mov dword [ebp - 0x1030], esi
xorps xmm0, xmm0
xor ebx, ebx
mov dword [ebp - 0x102c], ebx
movlpd qword [ebp - 0x1028], xmm0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x1038], eax
xorps xmm0, xmm0
mov dword [ebp - 0x1034], eax
movups xmmword [ebp - 0x1020], xmm0
test ebx, ebx
jb 0x4228bc
ja 0x422760
test esi, esi
je 0x4228bc
nop word [eax + eax]
mov ecx, dword [edi]
test ecx, ecx
je 0x422775
mov eax, dword [ecx]
mov eax, dword [eax + 0x18]
call eax
test al, al
jne 0x42285a
lea eax, [ebp - 0x1038]
push eax
push ecx
lea eax, [ebp - 0x1010]
push eax
lea ecx, [ebp - 0x1050]
call fcn.00423d40
mov ebx, dword [ebp - 0x1028]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4227aa
cmp dword [edi], 0
jne 0x42291e
jmp 0x42282f
test esi, esi
je 0x422821
push 0
lea eax, [ebp - 0x106c]
mov dword [ebp - 0x106c], 0
push eax
push esi
lea eax, [ebp - 0x1010]
push eax
push dword [ebp - 0x1044]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x106c], esi
je 0x4227e6
cmp dword [edi], 0
jne 0x42288b
mov ecx, dword [edi]
test ecx, ecx
je 0x42282f
movsd xmm0, qword [ebp - 0x1018]
sub esp, 8
mov esi, dword [ebp - 0x1040]
mov eax, dword [ecx]
movsd qword [esp], xmm0
push ebx
push esi
push dword [ebp - 0x1060]
call dword [eax + 0xc]
mov ecx, dword [edi]
mov eax, dword [ebp - 0x1058]
add eax, ebx
push eax
mov edx, dword [ecx]
call dword [edx + 8]
jmp 0x422835
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 0x1054]
mov esi, dword [ebp - 0x1040]
cmp dword [ebp - 0x1054], 5
ja 0x4228c2
cmp dword [ebp - 0x1024], 0
ja 0x4228c2
jb 0x422760
cmp ebx, esi
jae 0x4228c4
jmp 0x422760
sub esp, 0x18
mov ecx, esp
push 0x626ea0
call fcn.00420790
mov ecx, dword [edi]
mov eax, dword [ecx]
call dword [eax + 0x14]
lea ecx, [ebp - 0x1050]
call fcn.00423a10
lea ecx, [ebp - 0x1068]
call fcn.004238f0
jmp 0x42297d
sub esp, 0x18
mov ecx, esp
push 0x626eb4
call fcn.00420790
mov ecx, dword [edi]
mov eax, dword [ecx]
call dword [eax + 0x14]
lea ecx, [ebp - 0x1050]
call fcn.00423a10
lea ecx, [ebp - 0x1068]
call fcn.004238f0
jmp 0x42297d
mov ebx, dword [ebp - 0x1028]
cmp ebx, esi
jne 0x422919
cmp dword [ebp - 0x1024], 0
jne 0x422919
add dword [edi + 4], esi
mov ecx, dword [edi]
test ecx, ecx
je 0x4228ff
movsd xmm0, qword [ebp - 0x1018]
sub esp, 8
mov eax, dword [ecx]
movsd qword [esp], xmm0
push esi
push esi
push dword [ebp - 0x1060]
call dword [eax + 0xc]
mov ecx, dword [edi]
push dword [edi + 4]
mov eax, dword [ecx]
call dword [eax + 8]
lea ecx, [ebp - 0x1050]
call fcn.00423a10
lea ecx, [ebp - 0x1068]
call fcn.004238f0
mov al, 1
jmp 0x42297f
cmp dword [edi], 0
je 0x422934
sub esp, 0x18
mov ecx, esp
push 0x626e90
call fcn.00420790
mov ecx, dword [edi]
mov eax, dword [ecx]
call dword [eax + 0x14]
lea ecx, [ebp - 0x1050]
call fcn.00423a10
lea ecx, [ebp - 0x1068]
call fcn.004238f0
jmp 0x42297d
cmp dword [edi], 0
je 0x422967
sub esp, 0x18
mov ecx, esp
push 0x626e90
call fcn.00420790
mov ecx, dword [edi]
mov eax, dword [ecx]
call dword [eax + 0x14]
lea ecx, [ebp - 0x1050]
call fcn.00423a10
test ebx, ebx
je 0x42297d
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
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.004b8f5e
mov esp, ebp
pop ebp
ret 0xc