Function at 0x419af0
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 0x4d76ae
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x51a3c4]
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 0x419b5d
mov dword [esi], edx
mov eax, esi
mov dword [esi + 4], edx
jmp 0x41a36d
lea ecx, [ebp - 0x44]
call fcn.00409980
mov dword [ebp - 4], 0
cmp dword [0x524098], 0
je 0x419b99
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 0x419c9b
push edi
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x2c]
call fcn.00419430
add esp, 4
mov byte [ebp - 4], 1
cmp dword [0x524098], 0
je 0x419c16
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x2c]
call fcn.0040a340
test eax, eax
jne 0x419c2f
cmp edi, 0xc8
je 0x419c93
push 0xc8
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x74]
call fcn.00419430
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 0x419c85
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 0x419c48
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 0x419c93
cmp edi, 0xc8
je 0x419c93
push 0xc8
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x74]
call fcn.00419430
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 0x419c93
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 0x419d00
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 0x419d59
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 0x419d40
mov esi, dword [ebp - 0x98]
xor ebx, ebx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x84], edi
cmp eax, 8
jb 0x419d9c
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x419d8c
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41a389
push ecx
push edx
call fcn.004a42a7
mov edi, dword [ebp - 0x84]
add esp, 8
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0041c670
mov eax, dword [ebp - 0x18]
cmp byte [eax + 0xd], 0
jne 0x419e2d
cmp edi, dword [eax + 0x10]
jb 0x419e2d
cmp eax, dword [0x524080]
je 0x419e2d
lea eax, [ebp - 0x84]
push eax
call fcn.0041b9f0
mov dword [ebp - 0x78], eax
xor edi, edi
xor ebx, ebx
mov eax, dword [eax + 4]
test eax, eax
je 0x419e11
mov edx, dword [eax + 4]
lea edi, [eax + 4]
test edx, edx
je 0x419df9
lea ecx, [edx + 1]
mov eax, edx
lock cmpxchg dword [edi], ecx
cmp eax, edx
je 0x419e09
mov edx, eax
test eax, eax
jne 0x419de6
mov dword [ebp - 0xa0], ebx
xor ebx, ebx
mov dword [ebp - 0x9c], ebx
jmp 0x419e21
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 0x419e75
lea eax, [ebp - 0x84]
push eax
call fcn.0041bac0
or edi, 0xffffffff
cmp dword [0x524098], 0
je 0x41a0b9
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 0x41a0b9
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
mov dword [ebp - 0x7c], eax
jb 0x419ecc
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x7c], eax
test eax, eax
jne 0x419ecc
xor ecx, ecx
jmp 0x419fc5
lea eax, [ebp - 0x84]
push eax
call fcn.0041b9f0
xor ecx, ecx
xor edx, edx
test ebx, ebx
je 0x419e91
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 0x419eb0
mov byte [ebp - 4], 8
or eax, 0xffffffff
lock xadd dword [ecx + 8], eax
jne 0x419eb0
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 0x41a36d
mov ecx, eax
call fcn.00458aa0
push dword [ebp - 0x80]
test eax, eax
je 0x419f2e
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x419f51
movss xmm2, dword [0x502f24]
mov ecx, eax
call fcn.00454b70
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.00458e80
mov esi, dword [ebp - 0x98]
add esp, 0x10
jmp 0x419fb9
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 0x419f60
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
xor ecx, ecx
xor eax, eax
jmp 0x419fc5
call fcn.0041c9f0
push eax
lea ecx, [ebp - 0xc4]
call fcn.0041c130
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.0041bea0
mov edx, dword [ebp - 0x7c]
push ecx
lea ecx, [ebp - 0xa8]
call fcn.004191d0
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xc4]
call fcn.004177b0
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 0x41a063
mov byte [ebp - 4], 0xc
mov eax, edi
lock xadd dword [ecx + 4], eax
jne 0x41a022
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 0x41a022
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 0x41a063
mov byte [ebp - 4], 0xe
mov eax, edi
lock xadd dword [ecx + 4], eax
jne 0x41a05f
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 0x41a05f
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 0x41a0b9
lea eax, [ebp - 0x84]
push eax
call fcn.0041b9f0
mov ebx, dword [ebp - 0x78]
xor ecx, ecx
xor edx, edx
test ebx, ebx
je 0x41a092
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 0x41a0af
mov byte [ebp - 4], 0x10
lock xadd dword [ecx + 8], edi
dec edi
jne 0x41a0af
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x7c]
mov dword [esi], eax
jmp 0x419eb2
cmp dword [ebp - 0x30], 8
lea esi, [ebp - 0x44]
jb 0x41a0cd
mov esi, dword [ebp - 0x44]
test esi, esi
je 0x41a237
mov ecx, esi
call fcn.00458aa0
test eax, eax
je 0x41a10b
push dword [ebp - 0x90]
mov edx, esi
lea ecx, [ebp - 0xb0]
push dword [ebp - 0x8c]
push dword [ebp - 0x94]
call fcn.00459290
mov esi, dword [ebp - 0xac]
add esp, 0xc
mov ecx, dword [ebp - 0xb0]
jmp 0x41a23b
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 0x41a1b3
lea ecx, [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x41a1a7
push dword [ebp - 0x1c]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x94], eax
test eax, eax
je 0x41a1a7
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 0x41a19b
lea eax, [ebp - 0xb4]
push eax
push 1
push dword [ebp - 0x94]
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
jmp 0x41a1a7
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 0x41a237
call fcn.0041c9f0
push eax
lea ecx, [ebp - 0xbc]
call fcn.0041c130
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 0x41a1fe
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.004191d0
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xbc]
call fcn.004177b0
mov esi, dword [ebp - 0xac]
mov ecx, dword [ebp - 0xb0]
jmp 0x41a23b
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 0x41a2c2
mov byte [ebp - 4], 0x14
mov eax, edi
lock xadd dword [ebx + 4], eax
jne 0x41a289
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 0x41a289
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 0x41a2c2
mov byte [ebp - 4], 0x16
mov eax, edi
lock xadd dword [ebx + 4], eax
jne 0x41a2be
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 0x41a2be
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 0x41a31a
lea eax, [ebp - 0x84]
push eax
call fcn.0041b9f0
xor ecx, ecx
xor edx, edx
test esi, esi
je 0x41a2e5
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 0x41a302
mov byte [ebp - 4], 0x18
lock xadd dword [ecx + 8], edi
dec edi
jne 0x41a302
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 0x41a363
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 0x41a363
mov byte [ebp - 4], 0x1b
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x41a363
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov byte [ebp - 4], 0x1c
lock xadd dword [esi + 8], edi
dec edi
jne 0x41a363
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.004a44be
mov esp, ebp
pop ebp
ret
call fcn.004aba7f
int3