Function at 0x49f258
Capabilities:
Check http status code

Disassembly:
push 0x60
mov eax, 0x51a04b
call fcn.004db753
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.0049f94b
test eax, eax
jne 0x49f943
mov eax, dword [esi + 4]
mov dword [ebp + 0x14], eax
mov dword [esi + 8], eax
mov dword [ebp - 0x54], 0x544188
mov dword [ebp - 0x50], eax
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x28]
mov bl, byte [ebp + 0x30]
xor edx, edx
push dword [ebp + 0x1c]
movzx edi, bl
shl edi, 0x17
add edi, 0x8440c000
mov dword [ebp - 0x5c], 0x544054
mov dword [ebp - 0x58], edx
call fcn.0040713a
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0x28]
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
je 0x49f2e8
push dword [eax - 0xc]
lea ecx, [ebp - 0x28]
push eax
call fcn.00410f2f
push edi
lea eax, [ebp - 0x5c]
push eax
push ecx
push ecx
push dword [ebp - 0x28]
mov ecx, esi
push dword [ebp + 0x10]
push dword [esi + 8]
call fcn.0049f9ad
mov edi, eax
test edi, edi
je 0x49f30d
mov esi, dword [ebp + 0x14]
jmp 0x49f917
mov edx, dword [esi + 0x70]
mov ecx, dword [esi + 0x68]
mov eax, dword [esi + 4]
mov dword [ebp - 0x6c], 0x544180
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x6c], 0x5441e4
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x60], edx
mov byte [ebp - 4], 2
test bl, bl
mov eax, dword [sym.imp.WININET.dll_InternetQueryOptionW]
mov ebx, dword [sym.imp.WININET.dll_InternetSetOptionW]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], ebx
je 0x49f37a
cmp byte [esi + 0x94], 0
je 0x49f37a
lea ecx, [ebp + 0x18]
mov dword [ebp + 0x18], 4
push ecx
lea ecx, [ebp + 0x30]
push ecx
push 0x1f
push dword [esi + 4]
call eax
push dword [ebp + 0x18]
or dword [ebp + 0x30], 0x3380
lea eax, [ebp + 0x30]
push eax
push 0x1f
push dword [esi + 4]
call ebx
lea ecx, [ebp + 0x24]
call fcn.0040ce6d
mov ebx, dword [ebp + 0x34]
xor eax, eax
mov byte [ebp - 4], 3
cmp dword [ebx], eax
jbe 0x49f3c9
lea ecx, [ebp + 0x30]
call fcn.0040ce6d
mov byte [ebp - 4], 4
lea eax, [ebp + 0x30]
push dword [ebx]
push str.Range:_bytes_u__r_n
push eax
call fcn.00411714
mov eax, dword [ebp + 0x30]
lea ecx, [ebp + 0x24]
add esp, 0xc
push dword [eax - 0xc]
push eax
call fcn.00410f2f
lea ecx, [ebp + 0x30]
mov byte [ebp - 4], 3
call fcn.0040d133
lea edx, [esi + 0x42]
xor ebx, ebx
cmp word [edx], bx
jbe 0x49f426
lea ecx, [ebp + 0x18]
call fcn.00476a50
lea ecx, [ebp + 0x30]
mov byte [ebp - 4], 5
call fcn.0040ce6d
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.00411714
mov eax, dword [ebp + 0x30]
lea ecx, [ebp + 0x24]
add esp, 0xc
push dword [eax - 0xc]
push eax
call fcn.00410f2f
lea ecx, [ebp + 0x30]
mov byte [ebp - 4], 5
call fcn.0040d133
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 3
call fcn.0040d133
lea ecx, [ebp + 8]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
call fcn.0040ce6d
mov byte [ebp - 4], 7
mov eax, dword [esi + 0x8c]
cmp dword [eax - 0xc], 0
je 0x49f48d
mov edi, str.Content_Type:_application_x_www_form_urlencoded__charsetutf_8_r_n
push edi
call fcn.004e0c46
pop ecx
push eax
push edi
lea ecx, [ebp + 0x24]
call fcn.00410f2f
push ecx
mov ecx, dword [esi + 0x8c]
lea edx, [ebp + 8]
call fcn.004764c0
mov ebx, dword [ebp + 8]
pop ecx
mov dword [ebp - 0x14], ebx
cmp dword [ebx - 4], 1
jle 0x49f487
push dword [ebx - 0xc]
lea ecx, [ebp + 8]
call fcn.00456b41
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x14], ebx
mov eax, dword [ebx - 0xc]
mov dword [ebp - 0x2c], eax
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x49f498
mov eax, dword [ecx]
call dword [eax]
mov eax, dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov ecx, dword [sym.imp.KERNEL32.dll_ResetEvent]
mov dword [ebp + 0x20], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
mov eax, dword [sym.imp.WININET.dll_HttpSendRequestW]
mov dword [ebp - 0x38], eax
mov eax, dword [sym.imp.KERNEL32.dll_SetEvent]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x3c], eax
mov ebx, dword [ebp + 0x24]
xor eax, eax
mov esi, dword [esi + 4]
mov edi, dword [ebx - 0xc]
test edi, edi
cmove ebx, eax
mov eax, dword [ebp - 0x10]
xor edx, edx
push dword [eax + 0x68]
mov dword [eax + 0x34], 7
mov byte [eax + 0x38], dl
call ecx
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
push edi
push ebx
push esi
call dword [ebp - 0x38]
mov esi, dword [ebp - 0x10]
test eax, eax
jne 0x49f509
mov ecx, esi
call fcn.0049fa74
mov edi, eax
test edi, edi
je 0x49f50f
xor eax, eax
jmp 0x49f51b
push dword [esi + 0x68]
call dword [ebp - 0x3c]
xor eax, eax
mov edi, eax
cmp dword [esi + 0x30], eax
jne 0x49f51b
mov edi, dword [esi + 0x2c]
push eax
lea ebx, [esi + 0x98]
mov dword [ebp - 0x30], 4
mov dword [ebx], eax
lea eax, [ebp - 0x30]
push eax
push ebx
push 0x20000013
push dword [esi + 4]
call dword [ebp + 0x20]
test eax, eax
je 0x49f8eb
xor eax, eax
push eax
mov dword [ebp + 0x18], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp + 0x18]
push eax
push 0x20000005
push dword [esi + 4]
call dword [ebp + 0x20]
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, dword [ebp + 0x18]
cmp byte [esi + 0x62], 0
mov dword [ebp + 0x18], ecx
je 0x49f5ac
cmp dword [ebx], 0x130
je 0x49f5ac
xor eax, eax
mov dword [ebp - 0x40], 0x10
push eax
lea eax, [ebp - 0x40]
push eax
lea ebx, [esi + 0x52]
push ebx
push 0x4000000b
push dword [esi + 4]
call dword [ebp + 0x20]
test eax, eax
jne 0x49f5a3
push 0x10
push eax
push ebx
call fcn.004de9a0
add esp, 0xc
mov ecx, dword [ebp + 0x18]
lea ebx, [esi + 0x98]
mov eax, dword [esi + 0x8c]
cmp dword [eax - 0xc], 0
je 0x49f665
cmp dword [ebx], 0xc8
jne 0x49f665
xor ebx, ebx
mov dword [ebp + 0x30], ebx
mov esi, 0x410
mov byte [ebp - 4], 8
push esi
lea ecx, [ebp + 0x30]
call fcn.004950d4
push ebx
mov ebx, dword [ebp - 0x10]
lea eax, [ebp + 0x1c]
push eax
mov dword [ebp + 0x1c], esi
mov esi, dword [ebp + 0x30]
push esi
push 1
push dword [ebx + 4]
call dword [ebp + 0x20]
test eax, eax
jne 0x49f638
call dword [ebp - 0x24]
cmp eax, 0x7a
jne 0x49f882
push esi
call fcn.004db29c
pop ecx
push dword [ebp + 0x1c]
xor eax, eax
lea ecx, [ebp + 0x30]
mov dword [ebp + 0x30], eax
call fcn.004950d4
mov esi, dword [ebp + 0x30]
xor eax, eax
push eax
lea eax, [ebp + 0x1c]
push eax
push esi
push 1
push dword [ebx + 4]
call dword [ebp + 0x20]
test eax, eax
je 0x49f87f
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x49f64e
shr eax, 1
lea ecx, [ebx + 0x90]
push eax
push esi
call fcn.00410f2f
push esi
mov byte [ebp - 4], 7
call fcn.004db29c
pop ecx
mov ecx, dword [ebp + 0x18]
xor edx, edx
mov dword [ebp + 0x30], edx
mov esi, ebx
jmp 0x49f667
xor edx, edx
lea ebx, [esi + 0x98]
mov eax, dword [ebx]
cmp eax, 0x193
ja 0x49f7d8
je 0x49f8a4
sub eax, 0xc8
je 0x49f7bd
sub eax, 6
je 0x49f7a2
sub eax, 0x62
je 0x49f896
sub eax, 0x61
jne 0x49f7f5
mov edi, 0xe0000012
cmp edi, 0x2f0d
je 0x49f80c
cmp edi, 0x2f0c
je 0x49f80c
cmp edi, 0x2f06
je 0x49f80c
cmp edi, 0x2f05
je 0x49f80c
cmp edi, 0xe0000012
jne 0x49f8d6
lea ecx, [ebp + 0x10]
call fcn.0040ce6d
lea eax, [ebp + 0x10]
mov byte [ebp - 4], 9
push eax
push dword [ebx]
push dword [esi + 4]
call fcn.004a0063
mov esi, dword [ebx]
lea ecx, [ebp + 0x28]
mov ebx, 0x197
cmp esi, ebx
sete byte [ebp - 0x44]
call fcn.0040ce6d
cmp esi, ebx
mov byte [ebp - 4], 0xa
mov esi, dword [ebp - 0x10]
jne 0x49f72d
lea eax, [ebp + 0x28]
push eax
push dword [esi + 4]
call fcn.004a019d
lea ecx, [ebp - 0x20]
call fcn.0040ce6d
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xb
call fcn.0040ce6d
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
lea eax, [ebp + 0x28]
push eax
push dword [ebp - 0x44]
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
push dword [esi + 4]
call fcn.004a00ff
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x1c]
test al, al
je 0x49f8ab
call fcn.0040d133
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xa
call fcn.0040d133
lea ecx, [ebp + 0x28]
mov byte [ebp - 4], 9
call fcn.0040d133
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 7
call fcn.0040d133
jmp 0x49f877
mov eax, dword [ebp + 0x34]
test ecx, ecx
jne 0x49f7af
mov dword [eax], edx
mov eax, edx
jmp 0x49f7b3
mov eax, dword [eax]
add eax, ecx
mov ecx, dword [ebp + 0x38]
mov dword [ecx], eax
jmp 0x49f6ab
mov eax, dword [ebp + 0x38]
mov dword [eax], ecx
mov eax, dword [ebp + 0x34]
test ecx, ecx
je 0x49f7d1
cmp dword [eax], ecx
jae 0x49f89d
mov dword [eax], edx
jmp 0x49f6ab
sub eax, 0x194
je 0x49f8e4
sub eax, 3
je 0x49f6a6
sub eax, 3
je 0x49f8e4
test edi, edi
jne 0x49f6ab
mov eax, dword [ebp + 0x34]
mov dword [eax], edx
mov eax, dword [ebp + 0x38]
mov dword [eax], ecx
jmp 0x49f8da
cmp byte [esi + 0x81], 0
je 0x49f852
mov ebx, dword [esi + 4]
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x40], 4
push eax
push 0x1f
push ebx
call dword [ebp - 0x48]
test eax, eax
je 0x49f8f0
or dword [ebp - 0x18], 0x3f05
lea eax, [ebp - 0x18]
push 4
push eax
push 0x1f
push ebx
call dword [ebp - 0x4c]
test eax, eax
je 0x49f8f0
jmp 0x49f86f
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x49f865
push dword [esi + 4]
mov eax, dword [ecx]
push edi
push edx
call dword [eax + 0x24]
jmp 0x49f867
mov eax, edi
test eax, eax
jne 0x49f8f0
lea ecx, [ebp + 0x24]
call fcn.0040d600
mov ecx, dword [ebp - 0x34]
jmp 0x49f4c1
call dword [ebp - 0x24]
push esi
mov edi, eax
mov byte [ebp - 4], 7
call fcn.004db29c
xor eax, eax
pop ecx
mov dword [ebp + 0x30], eax
jmp 0x49f8f0
mov edi, 0xe0000013
jmp 0x49f8f0
mov edi, 0xe0000010
jmp 0x49f8f0
mov edi, 0xe0000016
jmp 0x49f8f0
call fcn.0040d133
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xa
call fcn.0040d133
lea ecx, [ebp + 0x28]
mov byte [ebp - 4], 9
call fcn.0040d133
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 7
call fcn.0040d133
jmp 0x49f8f0
test edi, edi
jne 0x49f8f0
mov esi, edx
mov dword [ebp - 0x68], edx
mov dword [ebp - 0x50], esi
jmp 0x49f8f3
mov edi, 0xe0000018
jmp 0x49f8f0
call dword [ebp - 0x24]
mov edi, eax
mov esi, dword [ebp + 0x14]
lea ecx, [ebp + 8]
mov byte [ebp - 4], 3
call fcn.0040d133
lea ecx, [ebp + 0x24]
mov byte [ebp - 4], 2
call fcn.0040d133
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 1
call fcn.0049d656
xor ebx, ebx
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call fcn.0040d133
or dword [ebp - 4], 0xffffffff
push ebx
push esi
mov dword [ebp - 0x54], 0x544188
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x50], ebx
mov eax, edi
call fcn.004db71c
ret 0x34