Function at 0x59a540
Capabilities:
Get file size

Disassembly:
sub esp, 0x28
mov eax, dword [ecx + 0xc]
push ebx
push ebp
push esi
push edi
push 0
push 0
push 3
mov dword [esp + 0x1c], ecx
mov ecx, dword [eax + 0x30]
push 0
push 3
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x14], edi
jne 0x59a57c
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x28
ret
lea edx, [esp + 0x18]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
xor esi, esi
cmp ebp, 0xffffffff
jne 0x59a5b0
test esi, esi
jne 0x59a5b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x59a5b0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x28
ret
mov eax, dword [esp + 0x18]
push 1
push 0
push 0
push eax
call fcn.0060c730
mov ecx, dword [esp + 0x10]
add ebp, eax
adc esi, edx
xor edi, edi
mov eax, dword [ecx + 0xb0]
mov dword [esp + 0x34], esi
xor esi, esi
xor ebx, ebx
test eax, eax
je 0x59a644
mov eax, dword [eax + 0x58]
test eax, eax
je 0x59a644
mov eax, dword [eax + 0x10]
test eax, eax
je 0x59a644
push ebx
push ebx
push 3
push ebx
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x59a644
lea edx, [esp + 0x18]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x59a630
test edi, edi
jne 0x59a630
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x59a630
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
jmp 0x59a644
mov eax, dword [esp + 0x18]
push 1
push 0
push 0
push eax
call fcn.0060c730
add esi, eax
adc edi, edx
mov edx, dword [esp + 0x34]
mov eax, esi
add eax, ebp
mov ecx, edi
adc ecx, edx
mov edx, dword [esp + 0x10]
add edx, 0x1c0
cmp eax, dword [edx]
jne 0x59a663
cmp ecx, dword [edx + 4]
je 0x59a681
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
test ebx, ebx
je 0x59a677
push ebx
call esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x28
ret
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], 0
push ecx
mov ecx, dword [esp + 0x14]
push edx
push ebp
push eax
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
call fcn.0059a2b0
test eax, eax
je 0x59a727
fld qword [0x659b60]
fcomp qword [esp + 0x28]
fnstsw ax
test ah, 0x40
jne 0x59a71f
fld qword [esp + 0x28]
fmul qword [0x65b890]
call fcn.0060a154
mov ecx, esi
mov dword [esp + 0x24], eax
or ecx, edi
mov dword [esp + 0x20], 0
jne 0x59a747
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x14]
mov esi, ebp
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x20]
push edx
push edi
push esi
push eax
call fcn.0059a400
test eax, eax
je 0x59a727
mov ecx, dword [esp + 0x24]
mov eax, 0x51eb851f
mul ecx
mov esi, dword [esp + 0x20]
shr edx, 4
add edx, esi
cmp ecx, edx
ja 0x59a727
mov dword [esp + 0x1c], 1
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
test ebx, ebx
je 0x59a73b
push ebx
call esi
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
mov eax, ebx
jmp 0x59a6f2