Function at 0x530960
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6371d0
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x6c
push ebx
push esi
push edi
mov eax, dword [0x6f4e3c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x74]
call fcn.00530e40
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x70]
add eax, 0xc
mov dword [ebp - 0x1c], eax
push 0x7c
mov ecx, dword [ebp + 8]
push ecx
call fcn.006036e3
add esp, 8
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x530c29
lea ecx, [ebp - 0x18]
call fcn.00519410
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.0042d1fc
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x30]
sub edx, dword [ebp + 8]
sar edx, 1
push edx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.0051a560
mov ecx, dword [ebp - 0x30]
add ecx, 2
mov dword [ebp + 8], ecx
lea ecx, [ebp - 0x18]
call fcn.00518f50
push eax
lea ecx, [ebp - 0x20]
call fcn.00519400
push eax
mov edx, dword [0x90018c]
push edx
mov eax, dword [0x90018c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x6c]
call edx
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jge 0x530a58
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x40], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.0051a980
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.005194e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.0051f5b0
mov eax, dword [ebp - 0x40]
jmp 0x530e1f
lea ecx, [ebp - 0x18]
call fcn.00519400
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx]
mov ecx, dword [eax + 0xc]
call ecx
mov dword [ebp - 0x24], eax
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
call eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xffffffff
jne 0x530ac5
mov dword [ebp - 0x44], 0x80004005
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.0051a980
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.005194e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.0051f5b0
mov eax, dword [ebp - 0x44]
jmp 0x530e1f
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
call edx
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x2c]
add eax, 2
push eax
mov ecx, dword [ebp - 0x1c]
call fcn.00530770
jmp 0x530af5
mov dword [ebp - 4], 2
jmp 0x530b05
mov ecx, dword [ebp - 0x1c]
call fcn.00519400
test eax, eax
jne 0x530b47
mov dword [ebp - 0x48], 0x8007000e
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.0051a980
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.005194e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.0051f5b0
mov eax, dword [ebp - 0x48]
jmp 0x530e1f
mov ecx, dword [ebp - 0x2c]
push ecx
mov ecx, dword [ebp - 0x1c]
call fcn.00519400
push eax
mov edx, dword [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx]
mov eax, dword [edx + 0x24]
call eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jge 0x530ba4
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x4c], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.0051a980
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.005194e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.0051f5b0
mov eax, dword [ebp - 0x4c]
jmp 0x530e1f
mov ecx, dword [ebp - 0x1c]
call fcn.00519400
mov edx, dword [ebp - 0x2c]
mov byte [eax + edx], 0
mov ecx, dword [ebp - 0x1c]
call fcn.00519400
mov ecx, dword [ebp - 0x2c]
mov byte [eax + ecx + 1], 0
mov edx, dword [ebp - 0x70]
mov eax, dword [ebp - 0x2c]
mov dword [edx + 0x90], eax
lea ecx, [ebp - 0x74]
call fcn.00519880
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
cmp dword [ebp + 0x10], 0
je 0x530bef
lea ecx, [ebp - 0x18]
call fcn.00519880
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x50], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.0051a980
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.005194e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.0051f5b0
mov eax, dword [ebp - 0x50]
jmp 0x530e1f
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
lea ecx, [ebp - 0x14]
call fcn.0051a1d0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x14]
call fcn.00519400
cmp eax, 0xffffffff
jne 0x530c8a
call fcn.00434c1f
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0051a1f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.0051f5b0
mov eax, dword [ebp - 0x54]
jmp 0x530e1f
lea edx, [ebp - 0x78]
push edx
lea ecx, [ebp - 0x14]
call fcn.00519400
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x78], 0
je 0x530cd0
mov dword [ebp - 0x58], 0x80004005
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0051a1f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.0051f5b0
mov eax, dword [ebp - 0x58]
jmp 0x530e1f
cmp dword [ebp - 0x7c], 0xffffffff
jne 0x530d01
call fcn.00434c1f
mov dword [ebp - 0x5c], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0051a1f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.0051f5b0
mov eax, dword [ebp - 0x5c]
jmp 0x530e1f
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x7c]
add eax, 2
push eax
mov ecx, dword [ebp - 0x1c]
call fcn.00530770
jmp 0x530d1c
mov dword [ebp - 4], 5
jmp 0x530d2c
mov ecx, dword [ebp - 0x1c]
call fcn.00519400
test eax, eax
jne 0x530d62
mov dword [ebp - 0x60], 0x8007000e
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0051a1f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.0051f5b0
mov eax, dword [ebp - 0x60]
jmp 0x530e1f
mov ecx, dword [ebp - 0x1c]
call fcn.00519400
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x64], 0
push 0
lea ecx, [ebp - 0x64]
push ecx
mov edx, dword [ebp - 0x7c]
push edx
mov eax, dword [ebp - 0x38]
push eax
lea ecx, [ebp - 0x14]
call fcn.00519400
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x530dbd
call fcn.00434c1f
mov dword [ebp - 0x68], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0051a1f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.0051f5b0
mov eax, dword [ebp - 0x68]
jmp 0x530e1f
mov ecx, dword [ebp - 0x38]
add ecx, dword [ebp - 0x7c]
mov byte [ecx], 0
mov edx, dword [ebp - 0x38]
add edx, dword [ebp - 0x7c]
mov byte [edx + 1], 0
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x7c]
mov dword [eax + 0x90], ecx
lea ecx, [ebp - 0x74]
call fcn.00519880
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov dword [ebp - 0x6c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0051a1f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.0051f5b0
mov eax, dword [ebp - 0x6c]
jmp 0x530e1f
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret