Function at 0x539800
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6016db
mov eax, dword fs:[0]
push eax
sub esp, 0x2a0
mov eax, dword [0x654c54]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2a4], ecx
mov eax, dword [ebp - 0x2a4]
cmp dword [eax + 0x28], 0
jne 0x539844
xor al, al
jmp 0x539a53
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
push eax
push str.SexyCacheReq_d
lea ecx, [ebp - 0x11c]
push ecx
call fcn.005cc868
add esp, 0xc
lea edx, [ebp - 0x11c]
push edx
push 0x304
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.kernel32.dll_CreateFileMappingA]
mov dword [ebp - 0x120], eax
push 0x304
push 0
push 0
push 0xf001f
mov eax, dword [ebp - 0x120]
push eax
call dword [sym.imp.kernel32.dll_MapViewOfFile]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x18], 0x10
jb 0x5398b4
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0x2a8], eax
jmp 0x5398c0
mov ecx, dword [ebp + 8]
add ecx, 4
mov dword [ebp - 0x2a8], ecx
mov edx, dword [ebp - 0x2a8]
push edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.005d14a0
add esp, 8
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x18], 0x10
jb 0x5398ea
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
mov dword [ebp - 0x2ac], eax
jmp 0x5398f6
mov ecx, dword [ebp + 0xc]
add ecx, 4
mov dword [ebp - 0x2ac], ecx
mov edx, dword [ebp - 0x2ac]
push edx
mov eax, dword [ebp - 0x18]
add eax, 0x100
push eax
call fcn.005d14a0
add esp, 8
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x300], 0
mov byte [ebp - 0x11], 0
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
push eax
push 0
mov edx, dword [ebp - 0x2a4]
mov eax, dword [edx + 0x28]
push eax
mov ecx, dword [ebp - 0x2a4]
mov edx, dword [ecx + 0x1c]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x539a39
mov eax, dword [ebp - 0x10]
push eax
push str.SexyCacheData_d
lea ecx, [ebp - 0x224]
push ecx
call fcn.005cc868
add esp, 0xc
lea edx, [ebp - 0x224]
push edx
push 0
push 0xf001f
call dword [sym.imp.kernel32.dll_OpenFileMappingA]
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0
je 0x539a2b
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x300]
push ecx
push 0
push 0
push 0xf001f
mov edx, dword [ebp - 0x228]
push edx
call dword [sym.imp.kernel32.dll_MapViewOfFile]
mov dword [ebp - 0x22c], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x22c]
mov dword [eax], ecx
mov edx, dword [ebp - 0x2a4]
mov dword [ebp - 0x230], edx
mov eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x22c]
mov dword [ebp - 0x238], ecx
mov edx, dword [ebp - 0x228]
mov dword [ebp - 0x234], edx
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x244]
push ecx
mov ecx, dword [ebp - 0x2a4]
add ecx, 0x2c
call fcn.0053edc0
mov byte [ebp - 0x11], 1
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x230]
push edx
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x300]
mov dword [eax], edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
mov ecx, dword [ebp - 0x120]
push ecx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.005cbcb1
mov esp, ebp
pop ebp
ret 0x10