Function at 0x49822b
Capabilities:
Check http status code
Read file on windows

Disassembly:
mov eax, 0x2888
call fcn.004b403b
mov eax, dword [0x46c340]
xor eax, esp
mov dword [esp + 0x2884], eax
mov eax, dword [esp + 0x2894]
push ebx
push esi
mov esi, dword [esp + 0x2894]
push edi
mov edi, dword [esp + 0x289c]
xor ebx, ebx
push 0x3c
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], eax
lea ecx, [esp + 0x38]
lea eax, [esp + 0x94]
push ebx
push ecx
mov dword [esp + 0x3c], edx
mov byte [esp + 0x1b], bl
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x28], ebx
call fcn.004a7fbb
lea eax, [esp + 0x89c]
mov dword [esp + 0x50], eax
mov eax, 0x800
add esp, 0xc
lea edx, [esp + 0x70]
lea ecx, [esp + 0x1890]
mov dword [esp + 0x34], 0x3c
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], 0x10
mov dword [esp + 0x48], eax
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], eax
cmp byte [esi + 0xe8], bl
je 0x4982de
push 0x461f70
call dword [0x459118]
mov eax, edi
call fcn.004727eb
cmp dword [esi + 0x6c], ebx
je 0x498789
test eax, eax
je 0x498789
cmp dword [esi + 0x68], ebx
je 0x49830f
lea edx, [esp + 0x34]
push edx
push 0x80000000
push 0
push eax
mov eax, dword [esi + 0x28]
call eax
jmp 0x498321
mov edx, dword [esi + 0x58]
lea ecx, [esp + 0x34]
push ecx
push 0x80000000
push 0
push eax
call edx
test eax, eax
je 0x498789
cmp byte [esi + 0xe8], bl
je 0x49833c
push 0x461f88
call dword [0x459118]
cmp byte [esi + 0xc8], bl
je 0x498378
cmp dword [esi + 0xe4], 8
jb 0x498355
mov eax, dword [esi + 0xd0]
jmp 0x49835b
lea eax, [esi + 0xd0]
push 0
push 0
push eax
push 3
push 0x461144
cmp dword [esi + 0x68], ebx
je 0x498371
mov eax, dword [esi + 4]
jmp 0x498394
mov ecx, dword [esi + 0x38]
call ecx
jmp 0x498396
push 0
push 0
push 0
push 0
push 0x461144
cmp dword [esi + 0x68], ebx
je 0x498391
mov edx, dword [esi + 4]
call edx
jmp 0x498396
mov eax, dword [esi + 0x38]
call eax
mov dword [esp + 0x10], eax
test eax, eax
je 0x498789
mov edi, dword [esp + 0x10]
mov eax, 0x7530
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0xea60
cmp dword [esi + 0x6c], ebx
je 0x498403
cmp dword [esi + 0x68], ebx
je 0x4983d6
mov ecx, dword [esi + 0x30]
push eax
push eax
push 0xea60
push 0
push edi
call ecx
jmp 0x498403
mov eax, dword [esi + 0x5c]
push 4
lea edx, [esp + 0x24]
push edx
push 2
push edi
call eax
mov edx, dword [esi + 0x5c]
push 4
lea ecx, [esp + 0x20]
push ecx
push 5
push edi
call edx
mov ecx, dword [esi + 0x5c]
push 4
lea eax, [esp + 0x18]
push eax
push 6
push edi
call ecx
cmp byte [esi + 0xe8], bl
je 0x498416
push 0x461fa4
call dword [0x459118]
movzx eax, word [esp + 0x4c]
cmp dword [esi + 0x6c], ebx
jne 0x498429
mov dword [esp + 0x1c], ebx
jmp 0x498789
push 0
cmp dword [esi + 0x68], ebx
je 0x498441
push eax
mov eax, dword [esi + 8]
lea edx, [esp + 0x898]
push edx
push edi
call eax
jmp 0x498458
mov edx, dword [esi + 0x3c]
push 0
push 3
push 0
push 0
push eax
lea ecx, [esp + 0x8a8]
push ecx
push edi
call edx
mov edi, eax
mov dword [esp + 0x1c], edi
test edi, edi
je 0x498789
cmp byte [esi + 0xe8], bl
je 0x498479
push 0x461fbc
call dword [0x459118]
mov eax, dword [esp + 0x40]
push edi
lea ecx, [esp + 0x1894]
mov edx, 0x461fd8
call fcn.0048c2eb
mov ebx, eax
test ebx, ebx
je 0x498789
cmp dword [esi + 0x6c], 0
mov edi, dword [fcn.00459084]
je 0x4984f5
push 0x461fe4
call edi
cmp dword [esi + 0x68], 0
push 0x20000000
push eax
push 0x461fe4
push ebx
je 0x4984c5
mov eax, dword [esi + 0x10]
call eax
jmp 0x4984ca
mov ecx, dword [esi + 0x44]
call ecx
cmp dword [esi + 0x6c], 0
je 0x4984f5
push 0x462008
call edi
cmp dword [esi + 0x68], 0
push 0x20000000
push eax
push 0x462008
push ebx
je 0x4984f0
mov edx, dword [esi + 0x10]
call edx
jmp 0x4984f5
mov eax, dword [esi + 0x44]
call eax
mov ecx, dword [esp + 0x2c]
push 0x462038
push ecx
call fcn.004a359a
mov edi, eax
add esp, 8
test edi, edi
je 0x498789
push ebp
push 2
push 0
push edi
call fcn.004a3451
push edi
call fcn.004a49ac
push 0
push 0
push edi
mov ebp, eax
call fcn.004a3451
add esp, 0x1c
test ebp, ebp
jne 0x498543
push edi
call fcn.004a2b7a
add esp, 4
jmp 0x498788
cmp ebp, 0x800
jb 0x49855b
lea edx, [ebp + 1]
push edx
call fcn.0049ff61
add esp, 4
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
push edi
push ebp
push 1
push eax
call fcn.004a47f2
push edi
mov ebp, eax
call fcn.004a2b7a
add esp, 0x14
test ebp, ebp
je 0x498788
cmp byte [esi + 0xe8], 0
je 0x498590
push 0x46203c
call dword [0x459118]
cmp dword [esi + 0x6c], 0
je 0x498788
cmp dword [esi + 0x68], 0
je 0x4985b5
mov ecx, dword [esp + 0x1c]
mov edx, dword [esi + 0x14]
push 0
push ebp
push ebp
push ecx
push 0
push 0
push ebx
call edx
jmp 0x4985c5
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 0x48]
push ebp
push eax
push 0
push 0
push ebx
call ecx
test eax, eax
je 0x498788
cmp byte [esi + 0xe8], 0
je 0x4985e1
push 0x462058
call dword [0x459118]
cmp dword [esi + 0x6c], 0
je 0x498788
cmp dword [esi + 0x68], 0
je 0x498601
mov edx, dword [esi + 0x18]
push 0
push ebx
call edx
test eax, eax
je 0x498788
cmp byte [esi + 0xe8], 0
je 0x498615
push 0x462078
call dword [0x459118]
cmp dword [esi + 0x6c], 0
mov dword [esp + 0x2c], 0x800
je 0x498788
cmp dword [esi + 0x68], 0
push 0
lea eax, [esp + 0x30]
lea ecx, [esp + 0x98]
push eax
push ecx
je 0x498648
mov edx, dword [esi + 0x1c]
push 0
push 0x13
push ebx
call edx
jmp 0x498650
mov edx, dword [esi + 0x4c]
push 0x13
push ebx
call edx
test eax, eax
je 0x498788
lea eax, [esp + 0x94]
push eax
call fcn.004a174c
mov ecx, dword [esp + 0x38]
add esp, 4
cmp eax, 0xc8
sete dl
mov byte [esp + 0x13], dl
test ecx, ecx
je 0x49867e
mov dword [ecx], eax
test dl, dl
je 0x498788
cmp dword [esp + 0x28], 0
je 0x498788
cmp byte [esi + 0xe8], 0
je 0x4986a5
push 0x462094
call dword [0x459118]
cmp dword [esi + 0x6c], 0
mov dword [esp + 0x24], 0x800
je 0x498788
cmp dword [esi + 0x68], 0
push 0
lea ecx, [esp + 0x28]
lea edx, [esp + 0x98]
push ecx
push edx
je 0x4986d8
mov eax, dword [esi + 0x1c]
push 0
push 5
push ebx
call eax
jmp 0x4986e0
mov eax, dword [esi + 0x4c]
push 5
push ebx
call eax
test eax, eax
je 0x498788
lea ecx, [esp + 0x94]
push ecx
call fcn.004a174c
add esp, 4
cmp byte [esi + 0xe8], 0
mov edi, eax
mov dword [esp + 0x18], 0
je 0x498716
push 0x4620b4
call dword [0x459118]
test edi, edi
jle 0x498788
mov ebp, dword [esp + 0x28]
cmp dword [esi + 0x6c], 0
je 0x498788
cmp dword [esi + 0x68], 0
lea edx, [esp + 0x18]
push edx
push 0x7ff
lea eax, [esp + 0x9c]
push eax
push ebx
je 0x498742
mov ecx, dword [esi + 0x20]
jmp 0x498745
mov ecx, dword [esi + 0x50]
call ecx
test eax, eax
je 0x498788
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x94]
mov byte [esp + edx + 0x94], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x498761
sub eax, edx
push eax
lea eax, [esp + 0x98]
push eax
mov eax, ebp
call fcn.0047c2ab
mov eax, dword [esp + 0x18]
cmp edi, eax
jbe 0x498788
sub edi, eax
test edi, edi
jg 0x49871e
pop ebp
call dword [fcn.00459090]
push eax
push 0x4620cc
lea ecx, [esp + 0x98]
push 0x800
push ecx
call fcn.004a4239
add esp, 0x10
cmp byte [esi + 0xe8], 0
je 0x4987c1
lea edx, [esp + 0x90]
push edx
call dword [0x459118]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x90]
cmp eax, ecx
je 0x4987d9
push eax
call fcn.004a12ca
add esp, 4
test ebx, ebx
je 0x4987f6
cmp dword [esi + 0x6c], 0
je 0x4987f6
cmp dword [esi + 0x68], 0
push ebx
je 0x4987f1
mov edx, dword [esi + 0x24]
call edx
jmp 0x4987f6
mov eax, dword [esi + 0x54]
call eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x498817
cmp dword [esi + 0x6c], 0
je 0x498817
cmp dword [esi + 0x68], 0
push eax
je 0x498812
mov ecx, dword [esi + 0x24]
call ecx
jmp 0x498817
mov edx, dword [esi + 0x54]
call edx
mov eax, dword [esp + 0x10]
test eax, eax
je 0x498838
cmp dword [esi + 0x6c], 0
je 0x498838
cmp dword [esi + 0x68], 0
push eax
je 0x498833
mov eax, dword [esi + 0x24]
call eax
jmp 0x498838
mov ecx, dword [esi + 0x54]
call ecx
mov ecx, dword [esp + 0x2890]
movzx eax, byte [esp + 0xf]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004a12bb
add esp, 0x2888
ret 0xc