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

Disassembly:
push 0x40
mov eax, 0x457418
call fcn.0043cc79
mov esi, ecx
mov dword [ebp - 0x10], esi
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.0041485e
test eax, eax
jne 0x414856
mov eax, dword [esi + 4]
mov dword [esi + 8], eax
mov dword [ebp - 0x34], 0x4698a0
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0x1c]
movzx edi, byte [ebp + 0x30]
shl edi, 0x17
add edi, 0x8440c000
mov dword [ebp - 0x3c], 0x469784
mov ecx, dword [eax]
sub ecx, 0x10
mov dword [ebp - 0x38], ebx
call fcn.00401b37
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 0x28]
mov ecx, dword [ecx]
cmp dword [ecx - 0xc], ebx
je 0x4141f6
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x18]
call fcn.004019fa
mov eax, dword [ebp - 0x18]
push edi
lea ecx, [ebp - 0x3c]
push ecx
push ecx
push ecx
push eax
push dword [ebp + 0x10]
mov ecx, esi
push dword [esi + 8]
call fcn.004148c0
mov ebx, eax
test ebx, ebx
jne 0x41483a
mov ecx, dword [esi + 0x70]
mov eax, dword [esi + 0x68]
mov edx, dword [esi + 4]
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x4c], 0x4698fc
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], ecx
mov byte [ebp - 4], 2
cmp byte [ebp + 0x30], bl
je 0x414270
cmp byte [esi + 0x94], bl
je 0x414270
lea eax, [ebp + 0x18]
mov dword [ebp + 0x18], 4
push eax
lea eax, [ebp + 0x30]
push eax
push 0x1f
push edx
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 [esi + 4]
call dword [sym.imp.WININET.dll_InternetSetOptionW]
call fcn.00402af7
push eax
lea ecx, [ebp + 0x18]
call fcn.00402918
mov ebx, dword [ebp + 0x34]
xor ecx, ecx
mov byte [ebp - 4], 3
cmp dword [ebx], ecx
jbe 0x4142ce
call fcn.00402af7
push eax
lea ecx, [ebp + 0x30]
call fcn.00402918
mov byte [ebp - 4], 4
lea eax, [ebp + 0x30]
push dword [ebx]
push str.Range:_bytes_u__r_n
push eax
call fcn.0040450a
mov esi, dword [ebp + 0x30]
lea ecx, [ebp + 0x18]
add esp, 0xc
push dword [esi - 0xc]
push esi
call fcn.004019fa
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 3
call fcn.00401b8a
mov esi, dword [ebp - 0x10]
lea edx, [esi + 0x42]
xor ebx, ebx
cmp word [edx], bx
jbe 0x414333
lea ecx, [ebp + 0x24]
call fcn.00404c03
mov byte [ebp - 4], 5
call fcn.00402af7
push eax
lea ecx, [ebp + 0x30]
call fcn.00402918
mov byte [ebp - 4], 6
lea eax, [ebp + 0x30]
push dword [ebp + 0x24]
push str.If_Modified_Since:__s_r_n
push eax
call fcn.0040450a
mov esi, dword [ebp + 0x30]
lea ecx, [ebp + 0x18]
add esp, 0xc
push dword [esi - 0xc]
push esi
call fcn.004019fa
lea ecx, [esi - 0x10]
call fcn.00401b8a
mov byte [ebp - 4], 3
mov ecx, dword [ebp + 0x24]
lea ecx, [ecx - 0x10]
call fcn.00401b8a
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
call fcn.00402af7
push eax
lea ecx, [ebp + 0x24]
call fcn.00402918
mov byte [ebp - 4], 7
mov eax, dword [esi + 0x8c]
cmp dword [eax - 0xc], 0
je 0x41439a
push str.Content_Type:_application_x_www_form_urlencoded__charsetutf_8_r_n
lea ecx, [ebp + 0x18]
call fcn.00401881
mov ecx, dword [esi + 0x8c]
lea edx, [ebp + 0x24]
push 0xfde9
call fcn.0040484a
mov edi, dword [ebp + 0x24]
pop ecx
cmp dword [edi - 4], 1
jle 0x41438f
push dword [edi - 0xc]
lea ecx, [ebp + 0x24]
call fcn.00404e6a
mov edi, dword [ebp + 0x24]
mov eax, dword [edi - 0xc]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], eax
jmp 0x41439d
mov edi, dword [ebp + 0x24]
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x4143a8
mov eax, dword [ecx]
call dword [eax]
mov eax, dword [ebp + 0x18]
mov ebx, eax
mov esi, dword [esi + 4]
mov ecx, dword [eax - 0xc]
xor eax, eax
test ecx, ecx
mov dword [ebp + 0x20], ecx
cmove ebx, eax
mov eax, dword [ebp - 0x10]
xor ecx, ecx
push dword [eax + 0x68]
mov dword [eax + 0x34], 7
mov byte [eax + 0x38], cl
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp + 0x20]
push ebx
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
mov esi, dword [ebp - 0x10]
test eax, eax
jne 0x4143fe
mov ecx, esi
call fcn.00414987
mov ebx, eax
test ebx, ebx
je 0x414407
xor ecx, ecx
jmp 0x414413
push dword [esi + 0x68]
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor ecx, ecx
mov ebx, ecx
cmp dword [esi + 0x30], ecx
jne 0x414413
mov ebx, dword [esi + 0x2c]
push ecx
lea eax, [esi + 0x98]
mov dword [ebp - 0x24], 4
mov dword [eax], ecx
lea ecx, [ebp - 0x24]
push ecx
push eax
push 0x20000013
push dword [esi + 4]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x414817
xor eax, eax
push eax
mov dword [ebp + 0x30], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp + 0x30]
push eax
push 0x20000005
push dword [esi + 4]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, dword [ebp + 0x30]
cmp byte [esi + 0x62], 0
mov dword [ebp + 0x30], ecx
je 0x4144ae
cmp dword [esi + 0x98], 0x130
je 0x4144ae
xor ecx, ecx
mov dword [ebp + 0x20], 0x10
push ecx
lea ecx, [ebp + 0x20]
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 0x4144ab
push 0x10
push eax
lea eax, [esi + 0x52]
push eax
call fcn.0043dd90
add esp, 0xc
mov ecx, dword [ebp + 0x30]
mov eax, dword [esi + 0x8c]
cmp dword [eax - 0xc], 0
je 0x414576
cmp dword [esi + 0x98], 0xc8
jne 0x414576
xor eax, eax
mov dword [ebp + 0x20], eax
mov esi, 0x410
mov byte [ebp - 4], 8
push esi
lea ecx, [ebp + 0x20]
call fcn.0040411b
xor eax, eax
mov dword [ebp + 0x14], esi
mov esi, dword [ebp + 0x20]
push eax
lea eax, [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 0x41454c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4147bc
push esi
call fcn.0043c1dd
pop ecx
push dword [ebp + 0x14]
xor eax, eax
lea ecx, [ebp + 0x20]
mov dword [ebp + 0x20], eax
call fcn.0040411b
mov esi, dword [ebp + 0x20]
xor eax, eax
push eax
lea eax, [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
je 0x4147b6
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x414565
mov ecx, dword [ebp - 0x10]
shr eax, 1
push eax
push esi
lea ecx, [ecx + 0x90]
call fcn.004019fa
push esi
mov byte [ebp - 4], 7
call fcn.0043c1dd
mov esi, dword [ebp - 0x10]
pop ecx
mov ecx, dword [ebp + 0x30]
mov eax, dword [esi + 0x98]
mov edx, 0x193
cmp eax, edx
ja 0x414711
je 0x4147d5
sub eax, 0xc8
je 0x4146f4
sub eax, 6
je 0x4146d6
sub eax, 0x62
je 0x4147c7
sub eax, 0x61
jne 0x41472e
mov ebx, 0xe0000012
xor edx, edx
cmp ebx, 0x2f0d
je 0x414747
cmp ebx, 0x2f0c
je 0x414747
cmp ebx, 0x2f06
je 0x414747
cmp ebx, 0x2f05
je 0x414747
cmp ebx, 0xe0000012
jne 0x414804
call fcn.00402af7
push eax
lea ecx, [ebp + 0x1c]
call fcn.00402918
lea eax, [ebp + 0x1c]
mov byte [ebp - 4], 9
push eax
push dword [esi + 0x98]
push dword [esi + 4]
call fcn.00414e5b
mov esi, dword [esi + 0x98]
cmp esi, 0x197
sete byte [ebp - 0x28]
call fcn.00402af7
push eax
lea ecx, [ebp + 8]
call fcn.00402918
cmp esi, 0x197
mov byte [ebp - 4], 0xa
mov esi, dword [ebp - 0x10]
jne 0x414655
lea eax, [ebp + 8]
push eax
push dword [esi + 4]
call fcn.00414f9d
call fcn.00402af7
push eax
lea ecx, [ebp - 0x14]
call fcn.00402918
mov byte [ebp - 4], 0xb
call fcn.00402af7
push eax
lea ecx, [ebp + 0x10]
call fcn.00402918
lea eax, [ebp + 0x10]
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x28]
lea eax, [ebp + 0x1c]
push eax
push dword [ebp + 0xc]
push dword [esi + 4]
call fcn.00414f0c
mov ecx, dword [ebp + 0x10]
lea ecx, [ecx - 0x10]
test al, al
je 0x4147dc
call fcn.00401b8a
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00401b8a
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00401b8a
mov byte [ebp - 4], 7
mov ecx, dword [ebp + 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00401b8a
jmp 0x4143a8
mov eax, dword [ebp + 0x34]
test ecx, ecx
jne 0x4146e6
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp + 0x38]
jmp 0x41470a
mov eax, dword [eax]
add eax, ecx
mov ecx, dword [ebp + 0x38]
mov dword [ecx], eax
jmp 0x4145ba
mov eax, dword [ebp + 0x38]
mov dword [eax], ecx
mov eax, dword [ebp + 0x34]
test ecx, ecx
je 0x414708
cmp dword [eax], ecx
jae 0x4147ce
xor edx, edx
mov dword [eax], edx
jmp 0x4145bc
sub eax, 0x194
je 0x414810
sub eax, 3
je 0x4145b5
sub eax, 3
je 0x414810
xor edx, edx
test ebx, ebx
jne 0x4145bc
mov eax, dword [ebp + 0x34]
mov dword [eax], edx
mov eax, dword [ebp + 0x38]
mov dword [eax], ecx
jmp 0x414808
cmp byte [esi + 0x81], 0
je 0x414798
mov eax, dword [esi + 4]
lea ecx, [ebp + 0x20]
push ecx
lea ecx, [ebp + 0x28]
mov dword [ebp - 0x2c], eax
push ecx
push 0x1f
push eax
mov dword [ebp + 0x20], 4
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
test eax, eax
je 0x41481f
or dword [ebp + 0x28], 0x3f05
lea eax, [ebp + 0x28]
push 4
push eax
push 0x1f
push dword [ebp - 0x2c]
call dword [sym.imp.WININET.dll_InternetSetOptionW]
test eax, eax
je 0x41481f
jmp 0x4147a9
push dword [esi + 4]
lea ecx, [esi + 0xc]
push ebx
push edx
call fcn.0041528e
test eax, eax
jne 0x41481f
lea ecx, [ebp + 0x18]
call fcn.00402d97
jmp 0x4143a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov ebx, eax
call fcn.0043c1dd
pop ecx
jmp 0x41481f
mov ebx, 0xe0000013
jmp 0x41481f
mov ebx, 0xe0000010
jmp 0x41481f
mov ebx, 0xe0000016
jmp 0x41481f
call fcn.00401b8a
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00401b8a
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00401b8a
mov ecx, dword [ebp + 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00401b8a
jmp 0x41481f
test ebx, ebx
jne 0x41481f
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x30], edx
jmp 0x41481f
mov ebx, 0xe0000018
jmp 0x41481f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea ecx, [edi - 0x10]
call fcn.00401b8a
mov ecx, dword [ebp + 0x18]
add ecx, 0xfffffff0
call fcn.00401b8a
lea ecx, [ebp - 0x4c]
call fcn.0041202e
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00401b8a
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], 0x4698a0
call fcn.0041507b
mov eax, ebx
call fcn.0043cc42
ret 0x34