Function at 0x457e70
Capabilities:
Check if file exists
Encode data using xor
Get file attributes
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53d11b
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x58d984]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x94], edi
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x90], ecx
test eax, eax
jne 0x457ecd
mov dword [ebx], eax
mov dword [ebx + 4], eax
jmp 0x4584ac
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004473b0
add esp, 8
mov dword [ebp - 4], 0
call fcn.00447de0
test eax, eax
je 0x457f14
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
jb 0x457ef6
mov eax, dword [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00447970
add esp, 8
lea ecx, [ebp - 0x40]
push eax
call fcn.0041b310
lea ecx, [ebp - 0x28]
call fcn.00403110
cmp edi, 0x64
jbe 0x45805f
push edi
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00458500
add esp, 0xc
mov byte [ebp - 4], 1
call fcn.00447de0
test eax, eax
lea eax, [ebp - 0x28]
je 0x457fd5
cmp dword [ebp - 0x14], 8
jb 0x457f4b
mov eax, dword [ebp - 0x28]
push eax
call fcn.004476a0
add esp, 4
test eax, eax
je 0x457f75
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x457f64
mov eax, dword [ebp - 0x28]
push dword [ebp - 0x18]
lea ecx, [ebp - 0x40]
push eax
call fcn.00403190
jmp 0x458057
cmp edi, 0xc8
je 0x458057
push 0xc8
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00458500
add esp, 0xc
lea ecx, [ebp - 0x28]
push eax
call fcn.0041b310
lea ecx, [ebp - 0x70]
call fcn.00403110
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x457fb3
mov eax, dword [ebp - 0x28]
push eax
call fcn.004476a0
add esp, 4
test eax, eax
je 0x458057
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x40]
call fcn.00457520
jmp 0x458057
cmp dword [ebp - 0x14], 8
jb 0x457fde
mov eax, dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call esi
cmp eax, 0xffffffff
je 0x458006
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x457ff8
mov eax, dword [ebp - 0x28]
push dword [ebp - 0x18]
lea ecx, [ebp - 0x40]
push eax
call fcn.00403190
jmp 0x458054
cmp edi, 0xc8
je 0x458054
push 0xc8
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00458500
add esp, 0xc
lea ecx, [ebp - 0x28]
push eax
call fcn.0041b310
lea ecx, [ebp - 0x70]
call fcn.00403110
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x458040
mov eax, dword [ebp - 0x28]
push eax
call esi
cmp eax, 0xffffffff
je 0x458054
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x40]
call fcn.00457520
mov esi, dword [ebp - 0x80]
lea ecx, [ebp - 0x28]
call fcn.00403110
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
jb 0x45807d
mov eax, dword [ebp - 0x40]
push dword [ebp - 0x90]
push esi
push edi
push eax
lea eax, [ebp - 0x58]
push str._s_factor__d_color__s_scale__s
push eax
call fcn.004519b0
add esp, 0x18
cmp dword [ebp - 0x44], 8
lea edx, [ebp - 0x58]
mov byte [ebp - 4], 3
jb 0x4580a7
mov edx, dword [ebp - 0x58]
mov ecx, edx
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4580c0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00403190
cmp dword [ebp - 0x14], 8
lea esi, [ebp - 0x28]
jb 0x4580e5
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov edx, 0x811c9dc5
lea edi, [eax + eax]
test edi, edi
je 0x458107
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x4580f6
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x8c], edx
call fcn.00403110
mov esi, dword [0x59a444]
mov ecx, esi
mov eax, dword [ecx + 4]
cmp byte [eax + 0xd], 0
jne 0x45825d
mov edx, dword [ebp - 0x8c]
cmp dword [eax + 0x10], edx
jae 0x45813a
mov eax, dword [eax + 8]
jmp 0x45813e
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x458130
cmp ecx, esi
je 0x45825d
cmp edx, dword [ecx + 0x10]
jb 0x45825d
lea eax, [ebp - 0x8c]
mov ecx, 0x59a444
push eax
call fcn.00457730
push eax
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
call fcn.00455b70
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x78]
call fcn.00457550
mov esi, dword [ebp - 0x84]
or edi, 0xffffffff
test esi, esi
je 0x4581c1
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x4581c1
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x4581c1
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
cmp dword [ebp - 0x78], 0
jne 0x4582aa
mov ecx, dword [0x59a444]
mov edi, ecx
mov edx, dword [ebp - 0x8c]
mov esi, ecx
mov eax, dword [ecx + 4]
cmp byte [eax + 0xd], 0
jne 0x45820c
mov ecx, dword [eax + 0x10]
cmp ecx, edx
jae 0x4581f0
mov eax, dword [eax + 8]
jmp 0x458200
cmp byte [esi + 0xd], 0
je 0x4581fc
cmp edx, ecx
jae 0x4581fc
mov esi, eax
mov edi, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x4581e4
mov ecx, dword [0x59a444]
cmp byte [esi + 0xd], 0
lea eax, [ecx + 4]
jne 0x458217
mov eax, esi
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
jne 0x458234
nop
cmp edx, dword [eax + 0x10]
jae 0x45822b
mov esi, eax
mov eax, dword [eax]
jmp 0x45822e
mov eax, dword [eax + 8]
cmp byte [eax + 0xd], 0
je 0x458220
mov dword [ebp - 0x7c], edi
cmp edi, esi
je 0x45824d
jmp 0x458240
lea ecx, [ebp - 0x7c]
call fcn.00407df0
cmp dword [ebp - 0x7c], esi
jne 0x458240
push esi
push edi
lea eax, [ebp - 0x7c]
mov ecx, 0x59a444
push eax
call fcn.00459e50
call fcn.00447de0
test eax, eax
je 0x458449
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
jb 0x458276
mov eax, dword [ebp - 0x40]
push eax
call fcn.00447860
mov edi, eax
add esp, 4
test edi, edi
je 0x458449
cmp dword [ebp - 0x2c], 8
lea esi, [ebp - 0x40]
jb 0x4582f9
mov esi, dword [ebp - 0x40]
test esi, esi
jne 0x4582f9
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x84], esi
jmp 0x4583f4
lea eax, [ebp - 0x8c]
mov ecx, 0x59a444
push eax
call fcn.00457730
mov esi, dword [ebp - 0x74]
mov edx, eax
test esi, esi
je 0x4582c8
lock inc dword [esi + 8]
mov eax, dword [ebp - 0x78]
mov dword [edx], eax
mov ecx, dword [edx + 4]
mov dword [edx + 4], esi
test ecx, ecx
je 0x4582e7
lock xadd dword [ecx + 8], edi
dec edi
jne 0x4582e7
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x78]
lea ecx, [ebp - 0x58]
mov dword [ebx], eax
mov dword [ebx + 4], esi
call fcn.00403110
jmp 0x4584a4
test edi, edi
jne 0x45830e
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x84], edi
jmp 0x4583f4
push esi
call fcn.00488ec0
add esp, 4
test eax, eax
je 0x458340
push dword [ebp - 0x90]
lea eax, [ebp - 0x88]
push dword [ebp - 0x80]
push dword [ebp - 0x94]
push esi
push edi
push eax
call fcn.004894d0
add esp, 0x18
jmp 0x4583f4
push esi
call fcn.00494640
add esp, 4
test eax, eax
je 0x458371
push dword [ebp - 0x90]
lea eax, [ebp - 0x88]
push dword [ebp - 0x80]
push dword [ebp - 0x94]
push esi
push eax
call fcn.00494af0
add esp, 0x14
jmp 0x4583f4
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x7c], 0
push eax
push 1
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov eax, dword [ebp - 0x7c]
test eax, eax
jne 0x45839a
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], eax
jmp 0x4583f4
push 0
push eax
call fcn.00457a90
add esp, 8
lea ecx, [ebp - 0x9c]
push eax
call fcn.00455780
mov eax, dword [ebp - 0x7c]
push eax
mov byte [ebp - 4], 4
mov ecx, dword [eax]
call dword [ecx + 8]
push dword [ebp - 0x94]
lea eax, [ebp - 0x9c]
push esi
sub esp, 8
mov ecx, esp
push eax
call fcn.00456ff0
lea eax, [ebp - 0x88]
push eax
call fcn.00458c70
add esp, 0x14
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x9c]
call fcn.004077e0
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x78]
call fcn.00457550
lea ecx, [ebp - 0x88]
call fcn.004077e0
mov esi, dword [ebp - 0x78]
test esi, esi
je 0x458449
lea eax, [ebp - 0x78]
mov ecx, 0x59a444
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.00457730
mov ecx, eax
call fcn.004557b0
mov eax, dword [ebp - 0x74]
mov dword [ebx], esi
mov dword [ebx + 4], eax
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
jmp 0x458494
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
jb 0x458455
mov eax, dword [ebp - 0x40]
push dword [ebp - 0x90]
push dword [ebp - 0x80]
push dword [ebp - 0x94]
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.00458ed0
add esp, 0x14
lea ecx, [ebp - 0x78]
push eax
call fcn.00457550
lea ecx, [ebp - 0x9c]
call fcn.004077e0
mov esi, dword [ebp - 0x78]
test esi, esi
jne 0x458415
mov dword [ebx], esi
mov dword [ebx + 4], esi
lea ecx, [ebp - 0x58]
call fcn.00403110
lea ecx, [ebp - 0x78]
call fcn.004077e0
lea ecx, [ebp - 0x40]
call fcn.00403110
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 - 0x10]
xor ecx, ebp
call fcn.004eda39
mov esp, ebp
pop ebp
ret