Function at 0x418ab1
Capabilities:
Check http status code
Read http header
Receive http response
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x24a8]
mov eax, 0x24a8
call fcn.00440510
push 0xffffffffffffffff
push 0x46aa57
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x486be4]
xor eax, ebp
mov dword [ebp + 0x24a4], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x24c0]
mov esi, dword [ebp + 0x24b8]
mov edi, dword [ebp + 0x24b0]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x24b4]
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebp + 0x24bc]
xor ebx, ebx
sub eax, ebx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x4c], ecx
je 0x418b2f
dec eax
jne 0x418b3b
cmp ecx, ebx
jne 0x418b3b
mov eax, 0x3ee
jmp 0x418e40
cmp esi, ebx
jne 0x418b3b
push 0x7a
pop eax
jmp 0x418e40
lea ecx, [ebp]
call fcn.0041777e
push 2
lea ecx, [ebp]
call fcn.00417a29
cmp dword [edi + 0x18], 8
jb 0x418b58
mov edi, dword [edi + 4]
jmp 0x418b5b
add edi, 4
push ebx
push edi
lea ecx, [ebp]
call fcn.00418527
test eax, eax
jne 0x418b73
mov eax, 0x2ee5
jmp 0x418e40
lea eax, [ebp + 0x42]
push eax
lea ecx, [ebp + 0x246c]
call fcn.00418774
mov dword [ebp - 4], ebx
cmp dword [ebp + 0x2450], 3
movzx eax, word [ebp + 0x244c]
mov edi, dword [ebp - 0x28]
sete cl
mov byte [ebp - 0x1c], cl
push dword [ebp - 0x1c]
mov ecx, edi
push eax
lea eax, [ebp + 0x246c]
push eax
call fcn.00417c1c
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0x448]
push eax
lea ecx, [ebp + 0x2488]
call fcn.00418774
mov byte [ebp - 4], 1
lea eax, [ebp + 0x144a]
push eax
lea ecx, [ebp + 0x2488]
call fcn.00418796
cmp dword [ebp - 0x10], ebx
je 0x418c09
mov byte [ebp - 4], bl
push ebx
push 1
lea ecx, [ebp + 0x2488]
call fcn.004058c8
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp + 0x246c]
call fcn.004058c8
mov eax, dword [ebp - 0x10]
jmp 0x418e40
lea ecx, [ebp - 0x64]
call fcn.0045ff2d
mov byte [ebp - 4], 2
push dword [ebp - 0x44]
lea eax, [ebp - 0x64]
push eax
push dword [0x486318]
lea eax, [ebp + 0x2488]
push eax
mov ecx, edi
call fcn.00417c9e
cmp eax, ebx
je 0x418c6c
mov esi, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x64]
call fcn.0045e167
mov byte [ebp - 4], bl
push ebx
push 1
lea ecx, [ebp + 0x2488]
call fcn.004058c8
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp + 0x246c]
call fcn.004058c8
mov eax, esi
jmp 0x418e40
push ebx
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push 0x20000013
push dword [edi + 8]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x48], 4
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x418c9a
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x418c34
cmp dword [ebp - 0x24], 0xc8
jne 0x418e0c
lea eax, [ebp - 0x18]
push eax
push dword [edi + 8]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x418c92
lea eax, [ebp - 0x11]
push eax
push dword [ebp - 0x18]
lea ecx, [ebp - 0x40]
mov byte [ebp - 0x11], bl
call fcn.00418a75
mov byte [ebp - 4], 3
cmp dword [ebp - 0x18], ebx
je 0x418cfb
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x18]
lea ecx, [ebp - 0x40]
push ebx
call fcn.00417815
push eax
push dword [edi + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x418df3
cmp dword [ebp - 0x10], ebx
je 0x418dab
push ebx
push dword [ebp - 0x10]
lea ecx, [ebp - 0x40]
call fcn.004189f5
mov eax, dword [ebp + 0x24b4]
sub eax, ebx
je 0x418d5f
dec eax
jne 0x418dab
push ebx
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x10]
lea ecx, [ebp - 0x40]
push ebx
mov dword [ebp - 0x1c], ebx
call fcn.00417815
push eax
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
cmp eax, ebx
je 0x418d4b
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x1c]
je 0x418dab
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.0045e167
push 0x1d
pop esi
jmp 0x418c36
mov edi, dword [esi + 0x10]
sub edi, dword [esi + 0xc]
push ebx
mov eax, edi
sub eax, dword [ebp - 0x34]
mov ecx, esi
add eax, dword [ebp - 0x30]
push eax
call fcn.004189f5
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x34]
mov esi, dword [esi + 0x10]
mov ecx, dword [ebp - 0x20]
sub esi, dword [ecx + 0xc]
push eax
push ebx
lea ecx, [ebp - 0x40]
call fcn.00417815
mov ecx, dword [ebp - 0x20]
push eax
sub esi, edi
push esi
push edi
call fcn.00417815
push eax
call fcn.0043fb2b
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x28]
add esp, 0x10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.0045e167
cmp dword [ebp - 0x18], ebx
ja 0x418ca7
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x64]
call fcn.0045e167
mov byte [ebp - 4], bl
push ebx
push 1
lea ecx, [ebp + 0x2488]
call fcn.004058c8
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp + 0x246c]
call fcn.004058c8
xor eax, eax
jmp 0x418e40
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.0045e167
jmp 0x418c36
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x64]
call fcn.0045e167
mov byte [ebp - 4], bl
push ebx
push 1
lea ecx, [ebp + 0x2488]
call fcn.004058c8
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp + 0x246c]
call fcn.004058c8
mov eax, 0x2f78
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x24a4]
xor ecx, ebp
call fcn.0043f928
add ebp, 0x24a8
leave
ret 0x14