Function at 0x418b40
Capabilities:
Check if file exists
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x448d70
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x4590b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0x10]
push eax
call dword [0x44d2ac]
test eax, eax
jne 0x418bc5
mov ebx, dword [ebp + 0xc]
call fcn.004188f0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418baf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 0x10]
xor eax, eax
lea ecx, [ebp - 0x50]
push ecx
push ebx
push edx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
call dword [0x44d0b8]
test eax, eax
je 0x418b81
cmp dword [ebp - 0x30], ebx
je 0x418b81
xor esi, esi
mov dword [ebp - 0x18], esi
push ebx
push ebx
push 3
push ebx
push 1
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 0x10]
push 0x80000000
push ecx
call dword [0x44d240]
mov edi, eax
mov dword [ebp - 0x14], edi
cmp edi, 0xffffffff
je 0x418d07
push ebx
mov ebx, dword [0x44d238]
lea edx, [ebp - 0x1c]
push edx
push 0xc
lea eax, [ebp - 0x2c]
push eax
push edi
call ebx
test eax, eax
je 0x418cfe
mov ecx, dword [ebp - 0x2c]
push esi
push esi
push ecx
push edi
call dword [0x44d0b4]
cmp eax, 0xffffffff
je 0x418cfe
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1c]
cmp eax, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
je 0x418c70
cmp eax, dword [ebp - 0x30]
jae 0x418cfe
test eax, eax
jbe 0x418cfe
push eax
call fcn.00435cf9
mov ecx, dword [ebp - 0x24]
push ecx
mov esi, eax
push 0
push esi
mov dword [ebp - 0x20], esi
call fcn.00438440
mov eax, dword [ebp - 0x24]
add esp, 0x10
push 0
lea edx, [ebp - 0x1c]
push edx
push eax
push esi
push edi
call ebx
test eax, eax
je 0x418cf2
xor ebx, ebx
cmp dword [ebp - 0x24], ebx
jbe 0x418cf2
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x14]
xor edx, edx
mov eax, ebx
div ecx
mov eax, dword [ebp + 8]
mov edi, edx
call fcn.00419640
mov dl, byte [eax]
xor byte [ebx + esi], dl
inc ebx
cmp ebx, dword [ebp - 0x24]
jb 0x418cab
test ebx, ebx
jbe 0x418cef
cmp byte [ebx + esi - 1], 0
jne 0x418cef
push esi
lea ebx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.004189d0
jmp 0x418cef
mov edi, dword [ebp - 0x14]
push esi
call fcn.004360ea
mov esi, dword [ebp - 0x18]
add esp, 4
push edi
call dword [0x44d234]
xor ebx, ebx
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
cmp esi, ebx
je 0x418d1a
add esi, 8
push esi
call dword [0x44d1cc]
lea edi, [ebp - 0x18]
call fcn.00418980
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418d48
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc