Function at 0x419b90
Capabilities:
Check http status code
Check if file exists
Encode data using xor
Get file attributes
Get file size
Hash data using fnv
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dc1fe
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x5203c4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x98], esi
mov dword [ebp - 0x88], esi
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x94], edi
mov dword [ebp - 0x90], eax
test edx, edx
jne 0x419bfd
mov dword [esi], edx
mov eax, esi
mov dword [esi + 4], edx
jmp 0x41a40d
lea ecx, [ebp - 0x44]
call fcn.00409980
mov dword [ebp - 4], 0
cmp dword [0x52a178], 0
je 0x419c39
cmp dword [ebp - 0x30], 8
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x2c]
cmovae edx, dword [ebp - 0x44]
call fcn.00408ea0
push eax
lea ecx, [ebp - 0x44]
call fcn.0040b440
lea ecx, [ebp - 0x2c]
call fcn.004074f0
cmp edi, 0x64
jbe 0x419d3b
push edi
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x2c]
call fcn.004194d0
add esp, 4
mov byte [ebp - 4], 1
cmp dword [0x52a178], 0
je 0x419cb6
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x2c]
call fcn.0040a340
test eax, eax
jne 0x419ccf
cmp edi, 0xc8
je 0x419d33
push 0xc8
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x74]
call fcn.004194d0
add esp, 4
lea ecx, [ebp - 0x2c]
push eax
call fcn.0040b440
lea ecx, [ebp - 0x74]
call fcn.004074f0
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x2c]
call fcn.0040a340
test eax, eax
jmp 0x419d25
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmovae eax, dword [ebp - 0x2c]
push eax
call ebx
cmp eax, 0xffffffff
je 0x419ce8
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push dword [ebp - 0x1c]
cmovae eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x44]
push eax
call fcn.00408d10
jmp 0x419d33
cmp edi, 0xc8
je 0x419d33
push 0xc8
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x74]
call fcn.004194d0
add esp, 4
lea ecx, [ebp - 0x2c]
push eax
call fcn.0040b440
lea ecx, [ebp - 0x74]
call fcn.004074f0
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call ebx
cmp eax, 0xffffffff
je 0x419d33
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x44]
call fcn.0040c320
lea ecx, [ebp - 0x2c]
call fcn.004074f0
xor ebx, ebx
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x9c], ebx
mov byte [ebp - 4], 2
lea eax, [ebp - 0x44]
push dword [ebp - 0x90]
cmp dword [ebp - 0x30], 8
push dword [ebp - 0x8c]
cmovae eax, dword [ebp - 0x44]
push edi
push eax
lea eax, [ebp - 0x5c]
push str._s_factor__d_color__s_scale__s
push eax
call fcn.00413140
add esp, 0x18
mov byte [ebp - 4], 3
lea edx, [ebp - 0x5c]
cmp dword [ebp - 0x48], 8
mov dword [ebp - 0x2c], ebx
cmovae edx, dword [ebp - 0x5c]
mov ecx, edx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], 7
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x419da0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.00408d10
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x2c]
mov edi, 0x811c9dc5
cmovae eax, edx
xor ecx, ecx
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x1c]
add eax, eax
je 0x419df9
mov esi, dword [ebp - 0x78]
mov ebx, eax
nop dword [eax]
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edi
imul edi, eax, 0x1000193
cmp ecx, ebx
jb 0x419de0
mov esi, dword [ebp - 0x98]
xor ebx, ebx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x84], edi
cmp eax, 8
jb 0x419e3c
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x419e2c
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41a429
push ecx
push edx
call fcn.004a8c37
mov edi, dword [ebp - 0x84]
add esp, 8
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0041c700
mov eax, dword [ebp - 0x18]
cmp byte [eax + 0xd], 0
jne 0x419ecd
cmp edi, dword [eax + 0x10]
jb 0x419ecd
cmp eax, dword [0x52a160]
je 0x419ecd
lea eax, [ebp - 0x84]
push eax
call fcn.0041ba80
mov dword [ebp - 0x78], eax
xor edi, edi
xor ebx, ebx
mov eax, dword [eax + 4]
test eax, eax
je 0x419eb1
mov edx, dword [eax + 4]
lea edi, [eax + 4]
test edx, edx
je 0x419e99
lea ecx, [edx + 1]
mov eax, edx
lock cmpxchg dword [edi], ecx
cmp eax, edx
je 0x419ea9
mov edx, eax
test eax, eax
jne 0x419e86
mov dword [ebp - 0xa0], ebx
xor ebx, ebx
mov dword [ebp - 0x9c], ebx
jmp 0x419ec1
mov ebx, dword [ebp - 0x78]
mov edi, dword [ebx]
mov ebx, dword [ebx + 4]
mov dword [ebp - 0xa0], edi
mov dword [ebp - 0x9c], ebx
test edi, edi
jne 0x419f15
lea eax, [ebp - 0x84]
push eax
call fcn.0041bb50
or edi, 0xffffffff
cmp dword [0x52a178], 0
je 0x41a159
cmp dword [ebp - 0x30], 8
lea ecx, [ebp - 0x44]
cmovae ecx, dword [ebp - 0x44]
call fcn.0040a230
mov dword [ebp - 0x80], eax
test eax, eax
je 0x41a159
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
mov dword [ebp - 0x7c], eax
jb 0x419f6c
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x7c], eax
test eax, eax
jne 0x419f6c
xor ecx, ecx
jmp 0x41a065
lea eax, [ebp - 0x84]
push eax
call fcn.0041ba80
xor ecx, ecx
xor edx, edx
test ebx, ebx
je 0x419f31
mov ecx, edi
mov edx, ebx
lock inc dword [ebx + 8]
mov dword [eax], ecx
mov ecx, dword [eax + 4]
mov dword [eax + 4], edx
test ecx, ecx
je 0x419f50
mov byte [ebp - 4], 8
or eax, 0xffffffff
lock xadd dword [ecx + 8], eax
jne 0x419f50
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [esi], edi
lea ecx, [ebp - 0x5c]
mov dword [esi + 4], ebx
call fcn.004074f0
lea ecx, [ebp - 0x44]
call fcn.004074f0
mov eax, esi
jmp 0x41a40d
mov ecx, eax
call fcn.00458c20
push dword [ebp - 0x80]
test eax, eax
je 0x419fce
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x419ff1
movss xmm2, dword [0x5092e4]
mov ecx, eax
call fcn.00454cf0
push dword [ebp - 0x80]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 0x90]
mov edx, esi
lea ecx, [ebp - 0xa8]
push dword [ebp - 0x8c]
push dword [ebp - 0x94]
push dword [ebp - 0x7c]
call fcn.00459000
mov esi, dword [ebp - 0x98]
add esp, 0x10
jmp 0x41a059
mov dword [ebp - 0x78], 0
call dword [sym.imp.KERNEL32.dll_GlobalLock]
lea eax, [ebp - 0x78]
push eax
push 1
push dword [ebp - 0x80]
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ecx, dword [ebp - 0x78]
test ecx, ecx
jne 0x41a000
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
xor ecx, ecx
xor eax, eax
jmp 0x41a065
call fcn.0041ca80
push eax
lea ecx, [ebp - 0xc4]
call fcn.0041c1c0
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x78]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
sub esp, 8
lea eax, [ebp - 0xc4]
mov ecx, esp
push eax
call fcn.0041bf30
mov edx, dword [ebp - 0x7c]
push ecx
lea ecx, [ebp - 0xa8]
call fcn.00419270
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xc4]
call fcn.004177d0
mov ecx, dword [ebp - 0xa8]
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0xa0], ecx
mov ecx, ebx
mov dword [ebp - 0x78], eax
mov ebx, eax
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0x88], ecx
mov dword [ebp - 0x9c], ebx
test ecx, ecx
je 0x41a103
mov byte [ebp - 4], 0xc
mov eax, edi
lock xadd dword [ecx + 4], eax
jne 0x41a0c2
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x88]
mov eax, edi
mov byte [ebp - 4], 0xd
lock xadd dword [ecx + 8], eax
jne 0x41a0c2
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0xa4]
mov dword [ebp - 0x88], ecx
test ecx, ecx
je 0x41a103
mov byte [ebp - 4], 0xe
mov eax, edi
lock xadd dword [ecx + 4], eax
jne 0x41a0ff
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x88]
mov eax, edi
mov byte [ebp - 4], 0xf
lock xadd dword [ecx + 8], eax
jne 0x41a0ff
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 0x7c], 0
je 0x41a159
lea eax, [ebp - 0x84]
push eax
call fcn.0041ba80
mov ebx, dword [ebp - 0x78]
xor ecx, ecx
xor edx, edx
test ebx, ebx
je 0x41a132
mov ecx, dword [ebp - 0x7c]
mov edx, ebx
lock inc dword [ebx + 8]
mov dword [eax], ecx
mov ecx, dword [eax + 4]
mov dword [eax + 4], edx
test ecx, ecx
je 0x41a14f
mov byte [ebp - 4], 0x10
lock xadd dword [ecx + 8], edi
dec edi
jne 0x41a14f
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x7c]
mov dword [esi], eax
jmp 0x419f52
cmp dword [ebp - 0x30], 8
lea esi, [ebp - 0x44]
jb 0x41a16d
mov esi, dword [ebp - 0x44]
test esi, esi
je 0x41a2d7
mov ecx, esi
call fcn.00458c20
test eax, eax
je 0x41a1ab
push dword [ebp - 0x90]
mov edx, esi
lea ecx, [ebp - 0xb0]
push dword [ebp - 0x8c]
push dword [ebp - 0x94]
call fcn.00459410
mov esi, dword [ebp - 0xac]
add esp, 0xc
mov ecx, dword [ebp - 0xb0]
jmp 0x41a2db
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push esi
mov dword [ebp - 0xb4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x8c], eax
cmp eax, 0xffffffff
je 0x41a253
lea ecx, [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x41a247
push dword [ebp - 0x1c]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x94], eax
test eax, eax
je 0x41a247
push 0
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x90], 0
push ecx
push dword [ebp - 0x1c]
push eax
push dword [ebp - 0x8c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41a23b
lea eax, [ebp - 0xb4]
push eax
push 1
push dword [ebp - 0x94]
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
jmp 0x41a247
push dword [ebp - 0x94]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp - 0x8c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xb4]
test ecx, ecx
je 0x41a2d7
call fcn.0041ca80
push eax
lea ecx, [ebp - 0xbc]
call fcn.0041c1c0
mov byte [ebp - 4], 0x13
mov eax, dword [ebp - 0xb4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov edx, dword [ebp - 0xb8]
sub esp, 8
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
test edx, edx
je 0x41a29e
lock inc dword [edx + 4]
mov eax, dword [ebp - 0xbc]
mov dword [ecx + 4], edx
mov edx, esi
mov dword [ecx], eax
push ecx
lea ecx, [ebp - 0xb0]
call fcn.00419270
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xbc]
call fcn.004177d0
mov esi, dword [ebp - 0xac]
mov ecx, dword [ebp - 0xb0]
jmp 0x41a2db
xor ecx, ecx
xor esi, esi
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xa0], ecx
mov dword [ebp - 0x9c], esi
test ebx, ebx
je 0x41a362
mov byte [ebp - 4], 0x14
mov eax, edi
lock xadd dword [ebx + 4], eax
jne 0x41a329
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
mov byte [ebp - 4], 0x15
mov eax, edi
lock xadd dword [ebx + 8], eax
jne 0x41a329
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
mov byte [ebp - 4], 3
mov ebx, dword [ebp - 0xac]
test ebx, ebx
je 0x41a362
mov byte [ebp - 4], 0x16
mov eax, edi
lock xadd dword [ebx + 4], eax
jne 0x41a35e
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
mov byte [ebp - 4], 0x17
mov eax, edi
lock xadd dword [ebx + 8], eax
jne 0x41a35e
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
mov byte [ebp - 4], 3
mov ebx, dword [ebp - 0x78]
test ebx, ebx
je 0x41a3ba
lea eax, [ebp - 0x84]
push eax
call fcn.0041ba80
xor ecx, ecx
xor edx, edx
test esi, esi
je 0x41a385
mov edx, esi
lock inc dword [esi + 8]
mov ecx, ebx
mov dword [eax], ecx
mov ecx, dword [eax + 4]
mov dword [eax + 4], edx
test ecx, ecx
je 0x41a3a2
mov byte [ebp - 4], 0x18
lock xadd dword [ecx + 8], edi
dec edi
jne 0x41a3a2
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x98]
lea ecx, [ebp - 0x5c]
mov eax, dword [ebp - 0x78]
mov dword [ebx], eax
mov dword [ebx + 4], esi
call fcn.004074f0
jmp 0x41a403
mov ebx, dword [ebp - 0x98]
lea ecx, [ebp - 0x5c]
mov dword [ebx], 0
mov dword [ebx + 4], 0
call fcn.004074f0
mov byte [ebp - 4], 0
test esi, esi
je 0x41a403
mov byte [ebp - 4], 0x1b
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x41a403
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov byte [ebp - 4], 0x1c
lock xadd dword [esi + 8], edi
dec edi
jne 0x41a403
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea ecx, [ebp - 0x44]
call fcn.004074f0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a8e4e
mov esp, ebp
pop ebp
ret
call fcn.004b040f
int3