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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d23cd
mov eax, dword fs:[0]
push eax
sub esp, 0x524
mov eax, dword [0x640844]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x514], esi
mov ecx, dword [ebp + 8]
lea edx, [esi + 0x1c]
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x2c], 0
cmp dword [esi + 0x30], 0x10
mov dword [ebp - 0x510], ecx
mov dword [ebp - 0x50c], eax
jb 0x4914ea
mov edx, dword [esi + 0x1c]
mov eax, dword [ebp + 0x10]
lea edi, [esi + 0x10]
mov byte [edx], 0
mov dword [esi + 0x18], eax
mov byte [esi + 8], 0
mov dword [edi], 0xffffffff
mov dword [edi + 4], 0xffffffff
mov dword [esi + 0x88], 0
mov dword [esi + 0x8c], 0
call fcn.0048a560
cmp eax, 7
jbe 0x491b50
mov ecx, dword [ebp - 0x510]
lea eax, [ebp - 0x4a0]
push 7
push 0
push eax
call fcn.0048a7c0
cmp dword [ebp - 0x48c], 0x10
lea ecx, [ebp - 0x4a0]
mov dword [ebp - 4], 0
cmovae ecx, dword [ebp - 0x4a0]
cmp dword [ebp - 0x490], 7
jne 0x491b3e
mov eax, dword [ecx]
mov edx, str.file:__
mov dword [ebp - 0x508], 3
cmp eax, dword [edx]
jne 0x49158c
add ecx, 4
mov dword [ebp - 0x508], 0xffffffff
add edx, 4
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x4915b7
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x4915b7
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x4915b7
cmp dword [ebp - 0x508], 0xffffffff
je 0x4915b3
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x4915b7
xor eax, eax
jmp 0x4915bc
sbb eax, eax
or eax, 1
test eax, eax
jne 0x491b3e
mov edi, dword [ebp - 0x510]
lea eax, [ebp - 0x500]
push 0xffffffffffffffff
push 7
push eax
mov ecx, edi
call fcn.0048a7c0
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.00489710
mov edx, eax
mov dword [ebp - 0x440], 0
mov ecx, edx
mov dword [ebp - 0x430], 0
xor eax, eax
mov dword [ebp - 0x42c], 7
mov word [ebp - 0x440], ax
lea eax, [ecx + 2]
mov dword [ebp - 0x508], eax
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x491620
sub ecx, dword [ebp - 0x508]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x440]
call fcn.0041b0d0
lea ecx, [ebp - 0x500]
mov byte [ebp - 4], 3
call fcn.00419a70
mov edx, dword [ebp - 0x42c]
lea eax, [ebp - 0x440]
cmp edx, 8
cmovae eax, dword [ebp - 0x440]
cmp word [eax], 0x2f
jne 0x4917bc
mov eax, dword [ebp - 0x430]
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x414], 7
cmp eax, 1
jb 0x492031
dec eax
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovb ecx, eax
cmp edx, 8
lea eax, [ebp - 0x440]
mov dword [ebp - 0x508], ecx
cmovae eax, dword [ebp - 0x440]
add eax, 2
mov dword [ebp - 0x504], eax
cmp ecx, 7
ja 0x4916e6
lea esi, [ecx + ecx]
mov dword [ebp - 0x418], ecx
push esi
push eax
lea eax, [ebp - 0x428]
push eax
call fcn.004eecb0
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x428], ax
jmp 0x491758
cmp ecx, 0x7ffffffe
ja 0x492036
mov esi, ecx
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x491706
mov esi, SysReAllocString
jmp 0x491710
mov eax, 0xa
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x428]
call fcn.0041b070
mov edi, eax
mov dword [ebp - 0x414], esi
mov eax, dword [ebp - 0x508]
mov dword [ebp - 0x418], eax
lea esi, [eax + eax]
push esi
push dword [ebp - 0x504]
push edi
call fcn.004eecb0
add esp, 0xc
mov dword [ebp - 0x428], edi
xor eax, eax
mov word [edi + esi], ax
mov edi, dword [ebp - 0x510]
mov edx, dword [ebp - 0x42c]
cmp edx, 8
jb 0x491798
mov ecx, dword [ebp - 0x440]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x49178e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49203b
push edx
push ecx
call fcn.004ece5f
add esp, 8
movups xmm0, xmmword [ebp - 0x428]
mov esi, dword [ebp - 0x514]
movups xmmword [ebp - 0x440], xmm0
movq xmm0, qword [ebp - 0x418]
movq qword [ebp - 0x430], xmm0
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004ef230
add esp, 0xc
mov dword [ebp - 0x508], 0x104
mov ecx, edi
call fcn.00489710
push 0
lea ecx, [ebp - 0x508]
push ecx
lea ecx, [ebp - 0x218]
push ecx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCreateFromUrlW]
test eax, eax
js 0x491829
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x491807
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x440]
call fcn.0041b0d0
cmp dword [ebp - 0x42c], 8
lea eax, [ebp - 0x440]
xorps xmm0, xmm0
mov dword [ebp - 0x518], 6
cmovae eax, dword [ebp - 0x440]
push 0x5e350c
push eax
movlpd qword [ebp - 0x524], xmm0
call fcn.004faa21
mov edi, eax
add esp, 8
mov dword [ebp - 0x510], edi
test edi, edi
je 0x491acb
push 0x100000
call fcn.004f25b6
add esp, 4
mov dword [ebp - 0x508], eax
test eax, eax
je 0x491a7b
push edi
mov dword [ebp - 0x518], 2
call fcn.004faa5a
add esp, 4
test eax, eax
jne 0x491a38
mov eax, dword [ebp - 0x520]
mov dword [ebp - 0x504], eax
mov eax, dword [ebp - 0x524]
mov dword [ebp - 0x514], eax
nop
push edi
push 0x100000
push 1
push dword [ebp - 0x508]
call fcn.004fadcb
mov edi, eax
add esp, 0x10
test edi, edi
je 0x4919fb
push dword [ebp - 0x50c]
add dword [ebp - 0x514], edi
push edi
adc dword [ebp - 0x504], 0
push 1
push dword [ebp - 0x508]
call fcn.004f8637
add esp, 0x10
cmp eax, edi
mov edi, dword [ebp - 0x504]
jne 0x491a1e
cmp dword [esi + 0x18], 0
xorps xmm0, xmm0
mov eax, dword [ebp - 0x514]
mov dword [ebp - 0x524], eax
mov dword [ebp - 0x520], edi
movlpd qword [ebp - 0x418], xmm0
je 0x4919d8
cmp dword [esi + 0x10], eax
jne 0x491947
cmp dword [esi + 0x14], edi
je 0x4919d8
lea eax, [ebp - 0x52c]
push eax
call fcn.00560ad0
mov edx, dword [ebp - 0x52c]
add esp, 4
sub edx, dword [esi + 0x88]
mov ecx, dword [ebp - 0x528]
sbb ecx, dword [esi + 0x8c]
mov eax, dword [ebp - 0x524]
cmp eax, dword [ebp - 0x418]
jne 0x49198a
mov eax, dword [ebp - 0x520]
cmp eax, dword [ebp - 0x414]
je 0x491998
test ecx, ecx
jl 0x4919d8
jg 0x491998
cmp edx, 0xbb8
jbe 0x4919d8
mov ecx, dword [esi + 0x18]
lea edx, [ebp - 0x418]
push edx
lea edx, [ebp - 0x524]
push edx
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [ebp - 0x524]
mov ecx, dword [ebp - 0x520]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x52c]
mov dword [esi + 0x14], ecx
mov ecx, dword [ebp - 0x528]
mov dword [esi + 0x88], eax
mov dword [esi + 0x8c], ecx
cmp byte [esi + 8], 0
je 0x491a01
push dword [ebp - 0x508]
mov dword [ebp - 0x518], 4
call fcn.004f250c
add esp, 4
jmp 0x491a8d
mov edi, dword [ebp - 0x504]
push dword [ebp - 0x510]
call fcn.004faa5a
add esp, 4
test eax, eax
jne 0x491a4a
mov edi, dword [ebp - 0x510]
jmp 0x4918c0
push dword [ebp - 0x508]
mov dword [ebp - 0x518], 6
call fcn.004f250c
add esp, 4
jmp 0x491a8d
mov eax, dword [ebp - 0x524]
mov edi, dword [ebp - 0x520]
mov dword [ebp - 0x514], eax
push dword [ebp - 0x510]
call fcn.004faa5a
add esp, 4
xor ecx, ecx
test eax, eax
mov eax, dword [ebp - 0x518]
cmovne eax, ecx
push dword [ebp - 0x508]
mov dword [ebp - 0x518], eax
call fcn.004f250c
add esp, 4
jmp 0x491a8d
mov eax, dword [ebp - 0x524]
mov edi, dword [ebp - 0x520]
mov dword [ebp - 0x514], eax
push dword [ebp - 0x510]
call fcn.004f7b75
add esp, 4
cmp dword [ebp - 0x518], 0
jne 0x491acb
mov edx, dword [esi + 0x18]
test edx, edx
je 0x491acb
mov eax, dword [ebp - 0x514]
lea ecx, [esi + 0x10]
cmp eax, dword [ecx]
jne 0x491abd
cmp edi, dword [ecx + 4]
je 0x491acb
mov dword [ecx], eax
mov dword [ecx + 4], edi
mov eax, dword [edx]
push ecx
push ecx
mov ecx, edx
call dword [eax + 0xc]
mov edx, dword [ebp - 0x42c]
cmp edx, 8
jb 0x491b0b
mov ecx, dword [ebp - 0x440]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x491b01
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x492040
push edx
push ecx
call fcn.004ece5f
add esp, 8
xor eax, eax
mov dword [ebp - 0x430], 0
lea ecx, [ebp - 0x4a0]
mov dword [ebp - 0x42c], 7
mov word [ebp - 0x440], ax
call fcn.00419a70
mov eax, dword [ebp - 0x518]
jmp 0x491ee9
lea ecx, [ebp - 0x4a0]
mov dword [ebp - 4], 0xffffffff
call fcn.00419a70
mov eax, dword [ebp - 0x510]
cmp dword [eax + 0x14], 0x10
jb 0x491b5e
mov eax, dword [eax]
push eax
push 0x2712
push dword [esi + 4]
call fcn.0051b6b0
push dword [ebp - 0x50c]
push 0x2711
push dword [esi + 4]
call fcn.0051b6b0
push str.divx_agent_1.0
push 0x2722
push dword [esi + 4]
call fcn.0051b6b0
push 0x492460
push 0x4efb
push dword [esi + 4]
call fcn.0051b6b0
push esi
push 0x2749
push dword [esi + 4]
call fcn.0051b6b0
push 0
push 0x2b
push dword [esi + 4]
call fcn.0051b6b0
add esp, 0x48
push 1
push 0x34
push dword [esi + 4]
call fcn.0051b6b0
push 0x492220
push 0x4e6f
push dword [esi + 4]
call fcn.0051b6b0
push esi
push 0x272d
push dword [esi + 4]
call fcn.0051b6b0
push 0x46
push 0x14
push dword [esi + 4]
call fcn.0051b6b0
push 0x2800
push 0x13
push dword [esi + 4]
call fcn.0051b6b0
push 0x1e
push 0x4e
push dword [esi + 4]
call fcn.0051b6b0
add esp, 0x48
push dword [esi + 4]
call fcn.00517de0
add esp, 4
mov dword [ebp - 0x51c], eax
test eax, eax
jne case.0x491d73.402
mov dword [ebp - 0x504], eax
lea eax, [ebp - 0x504]
push eax
push 0x200002
push dword [esi + 4]
call fcn.00517d20
mov eax, dword [ebp - 0x504]
add esp, 0xc
cmp dword [esi + 0x18], 0
je 0x491d62
cmp eax, 0xc8
jl 0x491c6e
cmp eax, 0x12c
jl 0x491d62
push 0x400
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.004ef230
push dword [ebp - 0x504]
lea eax, [ebp - 0x410]
push str.HTTP_error_code:__ld_n
push eax
call fcn.00485c10
add esp, 0x18
lea eax, [ebp - 0x410]
lea ecx, [ebp - 0x4a0]
push eax
call fcn.00489280
mov ecx, dword [esi + 0x18]
lea edx, [ebp - 0x4a0]
push edx
mov dword [ebp - 4], 4
mov eax, dword [ecx]
call dword [eax + 0x10]
lea ecx, [ebp - 0x4a0]
mov dword [ebp - 4], 0xffffffff
call fcn.00419a70
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x491d55
add eax, 0xc8
push eax
call fcn.004f25b6
add esp, 4
mov dword [ebp - 0x50c], eax
test eax, eax
je 0x491d55
cmp dword [esi + 0x30], 0x10
lea ecx, [esi + 0x1c]
jb 0x491cff
mov ecx, dword [ecx]
push ecx
push str.HTTP_header:__n_s_n
push eax
call fcn.00485c10
add esp, 0xc
lea ecx, [ebp - 0x4a0]
push dword [ebp - 0x50c]
call fcn.00489280
mov ecx, dword [esi + 0x18]
lea edx, [ebp - 0x4a0]
push edx
mov dword [ebp - 4], 5
mov eax, dword [ecx]
call dword [eax + 0x10]
lea ecx, [ebp - 0x4a0]
mov dword [ebp - 4], 0xffffffff
call fcn.00419a70
push dword [ebp - 0x50c]
call fcn.004f250c
add esp, 4
mov ecx, esi
call fcn.004920d0
mov eax, dword [ebp - 0x504]
add eax, 0xfffffe70
cmp eax, 0x6a
ja case.0x491d73.402
movzx eax, byte [eax + 0x492058]
jmp dword [eax*4 + 0x492050]
mov eax, 3
jmp 0x491ee9
mov ecx, dword [esi + 0x7c]
mov dword [ebp - 0x50c], ecx
lea ecx, [ebp - 0x51c]
push ecx
lea ecx, [ebp - 0x41c]
push ecx
lea ecx, [esi + 0x7c]
call fcn.00452b90
mov ecx, dword [ebp - 0x414]
cmp byte [ecx + 0xd], 0
jne 0x491f06
mov eax, dword [ebp - 0x51c]
cmp eax, dword [ecx + 0x10]
jl 0x491f06
cmp ecx, dword [ebp - 0x50c]
je 0x491f06
lea eax, [ebp - 0x51c]
push eax
lea eax, [ebp - 0x530]
push eax
lea ecx, [esi + 0x7c]
call fcn.00452b90
mov ecx, dword [ebp - 0x528]
cmp byte [ecx + 0xd], 0
jne 0x491dfb
mov eax, dword [ebp - 0x51c]
cmp eax, dword [ecx + 0x10]
jge 0x491e71
cmp dword [esi + 0x80], 0xaaaaaaa
lea eax, [esi + 0x7c]
je 0x492045
mov dword [ebp - 0x418], eax
push 0x18
mov dword [ebp - 4], 6
mov dword [ebp - 0x414], 0
call fcn.004ece2f
mov ecx, dword [ebp - 0x51c]
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov dword [eax + 0x10], ecx
mov ecx, dword [ebp - 0x50c]
mov dword [eax + 0x14], 0
push eax
push dword [ebp - 0x52c]
mov dword [eax], ecx
push dword [ebp - 0x530]
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
lea ecx, [esi + 0x7c]
mov word [eax + 0xc], 0
call fcn.004270a0
mov ecx, eax
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0x50c], eax
test eax, eax
jne 0x491f10
cmp dword [esi + 0x18], eax
je 0x491ee3
mov edx, dword [edi + 4]
mov ecx, dword [edi]
call fcn.004ed3a0
lea eax, [ebp - 0x418]
movsd qword [ebp - 0x418], xmm0
push eax
push 0x300008
push dword [esi + 4]
call fcn.00517d20
mov edx, dword [edi + 4]
add esp, 0xc
mov ecx, dword [edi]
call fcn.004ed3a0
movsd xmm1, qword [ebp - 0x418]
ucomisd xmm1, xmm0
lahf
test ah, 0x44
jnp 0x491ee3
movaps xmm0, xmm1
call fcn.004ed2f0
mov ecx, dword [esi + 0x18]
mov dword [edi], eax
mov dword [edi + 4], edx
push edi
mov edx, dword [ecx]
push edi
call dword [edx + 0xc]
mov eax, dword [ebp - 0x50c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ed0cc
mov esp, ebp
pop ebp
ret 0xc
mov dword [ebp - 0x50c], 6
cmp dword [esi + 0x18], 0
je 0x491ee3
push 0x400
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.004ef230
mov edi, 0xf
mov dword [ebp - 0x428], 0
add esp, 0xc
mov dword [ebp - 0x414], edi
mov dword [ebp - 0x418], 1
mov word [ebp - 0x428], 0x2d
mov ecx, dword [ebp - 0x51c]
mov dword [ebp - 4], 7
cmp ecx, 0x1c
jne 0x491f9b
mov ax, word [0x5e3554]
mov edx, dword [str.TimeOut]
mov word [ebp - 0x424], ax
mov al, byte [0x5e3556]
mov dword [ebp - 0x418], 7
mov dword [ebp - 0x428], edx
mov byte [ebp - 0x422], al
mov byte [ebp - 0x421], 0
lea eax, [ebp - 0x428]
push eax
push ecx
lea eax, [ebp - 0x410]
push str.DTL_error_code:__d___s__n
push eax
call fcn.00485c10
add esp, 0x10
lea eax, [ebp - 0x410]
lea ecx, [ebp - 0x4a0]
push eax
call fcn.00489280
mov ecx, dword [esi + 0x18]
lea edx, [ebp - 0x4a0]
push edx
mov byte [ebp - 4], 8
mov eax, dword [ecx]
call dword [eax + 0x10]
lea ecx, [ebp - 0x4a0]
mov byte [ebp - 4], 7
call fcn.00419a70
mov ecx, esi
call fcn.004920d0
mov edx, dword [ebp - 0x414]
cmp edx, 0x10
jb 0x491ee3
mov ecx, dword [ebp - 0x428]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x492022
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49204a
push edx
push ecx
call fcn.004ece5f
add esp, 8
jmp 0x491ee3
call fcn.004373d0
call fcn.0041b050
call fcn.004f242f
call fcn.004f242f
call fcn.004272b0
call fcn.004f242f
nop
jp 0x49206f
dec ecx
add byte [ebp + ebx + 0x49], al
add dword [eax], eax
add byte [ecx], al
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add byte [ecx], al
add ah, cl
int3
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [eax], eax
add dword [eax], eax
int3