Function at 0x418e1e
Capabilities:
Check http status code
Get http content length

Disassembly:
push 0x3c
mov eax, 0x434744
call fcn.0041e952
mov edi, ecx
mov dword [ebp - 0x10], edi
mov eax, dword [ebp + 0x38]
xor ebx, ebx
push ebx
push 3
push dword [ebp + 0x24]
mov dword [eax], ebx
push dword [ebp + 0x20]
mov eax, dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [eax]
push dword [ebp + 8]
call fcn.00419530
test eax, eax
jne 0x419528
mov eax, dword [edi + 4]
mov dword [edi + 8], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 4], ebx
mov eax, 0x8440c000
cmp byte [ebp + 0x30], bl
mov esi, 0x84c0c000
mov dword [ebp - 0x48], 0x443584
cmove esi, eax
mov dword [ebp - 0x44], ebx
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.00404554
lea ebx, [eax + 0x10]
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0x28]
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
je 0x418eb1
push dword [eax - 0xc]
lea ecx, [ebp - 0x1c]
push eax
call fcn.00403d7b
mov ebx, dword [ebp - 0x1c]
push esi
lea eax, [ebp - 0x48]
push eax
push ecx
push ecx
push ebx
push dword [ebp + 0x10]
mov ecx, edi
push dword [edi + 8]
call fcn.00419589
mov esi, eax
test esi, esi
jne 0x419516
mov eax, dword [edi + 4]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edi
mov byte [ebp - 4], 2
cmp byte [ebp + 0x30], 0
je 0x418f1d
cmp byte [edi + 0x94], 0
je 0x418f1d
lea ecx, [ebp + 0x18]
mov dword [ebp + 0x18], 4
push ecx
lea ecx, [ebp + 0x30]
push ecx
push 0x1f
push eax
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
push dword [ebp + 0x18]
or dword [ebp + 0x30], 0x3380
lea eax, [ebp + 0x30]
push eax
push 0x1f
push dword [edi + 4]
call dword [sym.imp.WININET.dll_InternetSetOptionW]
call fcn.00404409
push eax
lea ecx, [ebp + 0x24]
call fcn.0040385f
mov esi, dword [ebp + 0x34]
xor eax, eax
mov byte [ebp - 4], 3
cmp dword [esi], eax
jbe 0x418f7a
call fcn.00404409
push eax
lea ecx, [ebp + 0x30]
call fcn.0040385f
mov byte [ebp - 4], 4
lea eax, [ebp + 0x30]
push dword [esi]
push str.Range:_bytes_u__r_n
push eax
call fcn.0040795c
mov esi, dword [ebp + 0x30]
lea ecx, [ebp + 0x24]
add esp, 0xc
push dword [esi - 0xc]
push esi
call fcn.00403d7b
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 3
call fcn.004045ed
xor eax, eax
lea edx, [edi + 0x42]
cmp word [edx], ax
jbe 0x418fdc
lea ecx, [ebp + 0x18]
call fcn.0040fae1
mov byte [ebp - 4], 5
call fcn.00404409
push eax
lea ecx, [ebp + 0x30]
call fcn.0040385f
mov byte [ebp - 4], 6
lea eax, [ebp + 0x30]
push dword [ebp + 0x18]
push str.If_Modified_Since:__s_r_n
push eax
call fcn.0040795c
mov esi, dword [ebp + 0x30]
lea ecx, [ebp + 0x24]
add esp, 0xc
push dword [esi - 0xc]
push esi
call fcn.00403d7b
lea ecx, [esi - 0x10]
call fcn.004045ed
mov byte [ebp - 4], 3
mov ecx, dword [ebp + 0x18]
lea ecx, [ecx - 0x10]
call fcn.004045ed
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
call fcn.00404409
push eax
lea ecx, [ebp + 0x20]
call fcn.0040385f
mov byte [ebp - 4], 7
mov eax, dword [edi + 0x8c]
cmp dword [eax - 0xc], 0
je 0x41903f
push str.Content_Type:_application_x_www_form_urlencoded__charsetutf_8_r_n
lea ecx, [ebp + 0x24]
call fcn.004036da
push ecx
mov ecx, dword [edi + 0x8c]
lea edx, [ebp + 0x20]
call fcn.0040f83b
mov edi, dword [ebp + 0x20]
pop ecx
cmp dword [edi - 4], 1
jle 0x419034
push dword [edi - 0xc]
lea ecx, [ebp + 0x20]
call fcn.004039e3
mov edi, dword [ebp + 0x20]
mov eax, dword [edi - 0xc]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], eax
jmp 0x419042
mov edi, dword [ebp + 0x20]
mov esi, dword [ebp - 0x10]
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x419050
mov eax, dword [ecx]
call dword [eax]
lea eax, [esi + 0x98]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x24]
xor esi, esi
mov ecx, dword [eax - 0xc]
test ecx, ecx
mov edx, ecx
cmove edx, esi
mov dword [ebp + 0x30], edx
xor edx, edx
test ecx, ecx
cmove eax, edx
mov dword [ebp + 0x14], eax
mov eax, dword [ebp - 0x10]
push dword [eax + 0x64]
mov esi, dword [eax + 4]
mov dword [eax + 0x34], 7
mov byte [eax + 0x38], dl
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push dword [ebp + 0x30]
push dword [ebp + 0x14]
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
mov esi, dword [ebp - 0x10]
test eax, eax
jne 0x4190ba
mov ecx, esi
call fcn.0041963e
mov dword [ebp + 0x30], eax
test eax, eax
je 0x4190ba
xor ecx, ecx
jmp 0x4190cc
xor ecx, ecx
cmp dword [esi + 0x30], ecx
je 0x4190c6
mov dword [ebp + 0x30], ecx
jmp 0x4190cc
mov eax, dword [esi + 0x2c]
mov dword [ebp + 0x30], eax
push ecx
lea eax, [esi + 0x98]
mov dword [ebp - 0x28], 4
mov dword [eax], ecx
lea ecx, [ebp - 0x28]
push ecx
push eax
push 0x20000013
push dword [esi + 4]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x4194f3
xor eax, eax
push eax
mov dword [ebp + 0x18], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp + 0x18]
push eax
push 0x20000005
push dword [esi + 4]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov ecx, eax
lea edx, [esi + 0x98]
neg ecx
sbb ecx, ecx
and ecx, dword [ebp + 0x18]
cmp byte [esi + 0x62], 0
mov dword [ebp + 0x18], ecx
je 0x41916e
cmp dword [edx], 0x130
je 0x41916e
push 0
lea ecx, [ebp + 0x14]
mov dword [ebp + 0x14], 0x10
push ecx
lea eax, [esi + 0x52]
push eax
push 0x4000000b
push dword [esi + 4]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x419165
push 0x10
push eax
lea eax, [esi + 0x52]
push eax
call fcn.0041fe40
add esp, 0xc
mov ecx, dword [ebp + 0x18]
lea edx, [esi + 0x98]
mov eax, dword [esi + 0x8c]
cmp dword [eax - 0xc], 0
je 0x41922b
cmp dword [edx], 0xc8
jne 0x41922b
and dword [ebp + 0x14], 0
mov esi, 0x410
mov byte [ebp - 4], 8
push esi
lea ecx, [ebp + 0x14]
call fcn.0040a58b
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], esi
mov esi, dword [ebp + 0x14]
push eax
mov eax, dword [ebp - 0x10]
push esi
push 1
push dword [eax + 4]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x419204
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x419494
push esi
call fcn.0041df98
and dword [ebp + 0x14], 0
pop ecx
push dword [ebp + 8]
lea ecx, [ebp + 0x14]
call fcn.0040a58b
mov esi, dword [ebp + 0x14]
lea eax, [ebp + 8]
push 0
push eax
mov eax, dword [ebp - 0x10]
push esi
push 1
push dword [eax + 4]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x41948e
mov eax, dword [ebp + 8]
test eax, eax
je 0x41921d
mov ecx, dword [ebp - 0x10]
shr eax, 1
push eax
push esi
lea ecx, [ecx + 0x90]
call fcn.00403d7b
push esi
mov byte [ebp - 4], 7
call fcn.0041df98
pop ecx
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, 0x193
mov eax, dword [eax]
cmp eax, edx
ja 0x4193d4
je 0x4194ae
sub eax, 0xc8
je 0x4193b4
sub eax, 6
je 0x41938e
sub eax, 0x62
je 0x4194a0
sub eax, 0x61
jne 0x4193f1
mov esi, 0xe0000012
mov dword [ebp + 0x30], esi
xor edx, edx
cmp esi, 0x2f0d
je 0x41940d
cmp esi, 0x2f0c
je 0x41940d
cmp esi, 0x2f06
je 0x41940d
cmp esi, 0x2f05
je 0x41940d
cmp esi, 0xe0000012
jne 0x4194e0
call fcn.00404409
push eax
lea ecx, [ebp + 0x28]
call fcn.0040385f
mov esi, dword [ebp - 0x2c]
lea eax, [ebp + 0x28]
push eax
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 9
push dword [esi]
push dword [eax + 4]
call fcn.00419b04
mov esi, dword [esi]
cmp esi, 0x197
sete byte [ebp - 0x30]
call fcn.00404409
push eax
lea ecx, [ebp + 0x1c]
call fcn.0040385f
mov byte [ebp - 4], 0xa
cmp esi, 0x197
jne 0x41930a
lea eax, [ebp + 0x1c]
push eax
mov eax, dword [ebp - 0x10]
push dword [eax + 4]
call fcn.00419c50
call fcn.00404409
push eax
lea ecx, [ebp - 0x18]
call fcn.0040385f
mov byte [ebp - 4], 0xb
call fcn.00404409
push eax
lea ecx, [ebp - 0x14]
call fcn.0040385f
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x1c]
push eax
push dword [ebp - 0x30]
lea eax, [ebp + 0x28]
push eax
mov eax, dword [ebp - 0x10]
mov ecx, eax
push dword [ebp + 0xc]
push dword [eax + 4]
call fcn.00419bb5
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
test al, al
je 0x4194b5
call fcn.004045ed
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.004045ed
mov ecx, dword [ebp + 0x1c]
lea ecx, [ecx - 0x10]
call fcn.004045ed
mov byte [ebp - 4], 7
mov ecx, dword [ebp + 0x28]
lea ecx, [ecx - 0x10]
call fcn.004045ed
jmp 0x419059
mov eax, dword [ebp + 0x34]
mov esi, dword [ebp + 0x30]
test ecx, ecx
jne 0x4193a6
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp + 0x38]
mov dword [eax], edx
jmp 0x419273
mov eax, dword [eax]
add eax, ecx
mov ecx, dword [ebp + 0x38]
mov dword [ecx], eax
jmp 0x419271
mov eax, dword [ebp + 0x38]
mov dword [eax], ecx
mov eax, dword [ebp + 0x34]
test ecx, ecx
je 0x4193c8
cmp dword [eax], ecx
jae 0x4194a7
mov esi, dword [ebp + 0x30]
xor edx, edx
mov dword [eax], edx
jmp 0x419273
sub eax, 0x194
je 0x4194ec
sub eax, 3
je 0x419269
sub eax, 3
je 0x4194ec
mov esi, dword [ebp + 0x30]
xor edx, edx
test esi, esi
jne 0x419273
mov eax, dword [ebp + 0x34]
mov dword [eax], edx
mov eax, dword [ebp + 0x38]
mov dword [eax], ecx
jmp 0x4194e4
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x81], 0
je 0x419466
mov eax, dword [eax + 4]
lea ecx, [ebp + 0x30]
push ecx
lea ecx, [ebp + 0x10]
mov dword [ebp + 0x14], eax
push ecx
push 0x1f
push eax
mov dword [ebp + 0x30], 4
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
test eax, eax
je 0x4194fb
or dword [ebp + 0x10], 0x3f05
lea eax, [ebp + 0x10]
push 4
push eax
push 0x1f
push dword [ebp + 0x14]
call dword [sym.imp.WININET.dll_InternetSetOptionW]
test eax, eax
setne al
test al, al
je 0x4194fb
jmp 0x419481
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 4]
test ecx, ecx
je 0x41947b
mov eax, dword [ecx]
push edx
push esi
push 0
call dword [eax + 0x28]
jmp 0x41947d
xor eax, eax
test eax, eax
jne 0x4194fb
lea ecx, [ebp + 0x24]
call fcn.00404605
jmp 0x419059
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov dword [ebp + 0x30], eax
call fcn.0041df98
pop ecx
jmp 0x4194db
mov esi, 0xe0000013
jmp 0x4194fb
mov esi, 0xe0000010
jmp 0x4194fb
mov esi, 0xe0000016
jmp 0x4194fb
call fcn.004045ed
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.004045ed
mov ecx, dword [ebp + 0x1c]
lea ecx, [ecx - 0x10]
call fcn.004045ed
mov ecx, dword [ebp + 0x28]
lea ecx, [ecx - 0x10]
call fcn.004045ed
mov esi, dword [ebp + 0x30]
jmp 0x4194fb
test esi, esi
jne 0x4194fb
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x40], edx
jmp 0x4194fb
mov esi, 0xe0000018
jmp 0x4194fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [edi - 0x10]
call fcn.004045ed
mov ecx, dword [ebp + 0x24]
add ecx, 0xfffffff0
call fcn.004045ed
lea ecx, [ebp - 0x38]
call fcn.00419d43
lea ecx, [ebx - 0x10]
call fcn.004045ed
lea ecx, [ebp - 0x40]
call fcn.00419d24
mov eax, esi
call fcn.0041e92c
ret 0x34