Function at 0x50a400
Capabilities:
Check if file exists
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b0618
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x6aae20]
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 dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x34]
call fcn.00410e00
mov dword [ebp - 4], 0
push 0
push 0x80
push 3
push 0
push 1
push 0x80
lea ecx, [ebp - 0x34]
call fcn.00411070
push eax
call fcn.005246c0
add esp, 0x1c
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0xffffffff
jne 0x50a52b
push 0x623f6c
lea ecx, [ebp - 0x34]
call fcn.0040cc80
push 0
push 0x80
push 3
push 0
push 1
push 0x80
lea ecx, [ebp - 0x34]
call fcn.00411070
push eax
call fcn.005246c0
add esp, 0x1c
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0xffffffff
jne 0x50a52b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x50a4f7
mov dword [ebp - 0xcc], 0
mov dword [ebp - 0xc8], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004116c0
mov eax, dword [ebp - 0xcc]
mov edx, dword [ebp - 0xc8]
jmp 0x50a66c
mov dword [ebp - 0xc4], 0xffffffff
mov dword [ebp - 0xc0], 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004116c0
mov eax, dword [ebp - 0xc4]
mov edx, dword [ebp - 0xc0]
jmp 0x50a66c
push str.GetFileInformationByHandleEx
push 0x64a79c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x50a5c4
mov dword [ebp - 0x54], 0
xor eax, eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
push 0x18
lea eax, [ebp - 0x54]
push eax
push 1
mov ecx, dword [ebp - 0x38]
push ecx
call dword [ebp - 0x3c]
test eax, eax
je 0x50a584
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x14], ecx
jmp 0x50a5c2
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0xbc], 0xfffffffe
mov dword [ebp - 0xb8], 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004116c0
mov eax, dword [ebp - 0xbc]
mov edx, dword [ebp - 0xb8]
jmp 0x50a66c
jmp 0x50a635
lea eax, [ebp - 0x5c]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x50a5fa
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x34]
call fcn.00411070
push eax
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x14], ecx
jmp 0x50a635
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0xb4], 0xfffffffe
mov dword [ebp - 0xb0], 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004116c0
mov eax, dword [ebp - 0xb4]
mov edx, dword [ebp - 0xb0]
jmp 0x50a66c
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xac], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0xa8], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004116c0
mov eax, dword [ebp - 0xac]
mov edx, dword [ebp - 0xa8]
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.005884bd
mov esp, ebp
pop ebp
ret 4