Function at 0x592190
Capabilities:
Get file size

Disassembly:
sub esp, 0x24
mov eax, dword [ecx + 0xc]
push edi
push 0
push 0
push 3
push 0
push 3
mov dword [esp + 0x24], ecx
mov ecx, dword [eax + 0x30]
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [esp + 8], edi
cmp edi, 0xffffffff
jne 0x5921c6
xor eax, eax
pop edi
add esp, 0x24
ret
push ebp
push esi
lea edx, [esp + 0x14]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
xor esi, esi
cmp ebp, 0xffffffff
jne 0x5921fb
test esi, esi
jne 0x5921fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5921fb
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebp
xor eax, eax
pop edi
add esp, 0x24
ret
mov eax, dword [esp + 0x14]
push ebx
push 1
push 0
push 0
push eax
call fcn.00624ab0
mov ecx, dword [esp + 0x1c]
add ebp, eax
mov eax, dword [ecx + 0xb0]
adc esi, edx
mov dword [esp + 0x30], esi
xor esi, esi
xor edi, edi
xor ebx, ebx
test eax, eax
je 0x592290
mov eax, dword [eax + 0x58]
test eax, eax
je 0x592290
mov eax, dword [eax + 0x10]
test eax, eax
je 0x592290
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 0x592290
lea edx, [esp + 0x18]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x59227c
test edi, edi
jne 0x59227c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x59227c
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
jmp 0x592290
mov eax, dword [esp + 0x18]
push 1
push 0
push 0
push eax
call fcn.00624ab0
add esi, eax
adc edi, edx
mov edx, dword [esp + 0x1c]
mov eax, esi
add eax, ebp
mov ecx, edi
adc ecx, dword [esp + 0x30]
cmp eax, dword [edx + 0x1c8]
jne 0x5922ae
cmp ecx, dword [edx + 0x1cc]
je 0x5922cc
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
test ebx, ebx
je 0x5922c2
push ebx
call esi
pop ebx
pop esi
pop ebp
xor eax, eax
pop edi
add esp, 0x24
ret
mov ecx, dword [esp + 0x30]
fldz
lea eax, [esp + 0x24]
fstp qword [esp + 0x24]
push eax
mov eax, dword [esp + 0x18]
push ecx
push ebp
push eax
mov ecx, edx
mov dword [esp + 0x30], 0
call fcn.00592010
test eax, eax
je 0x592385
fld qword [esp + 0x24]
fcom qword [0x681ae8]
fnstsw ax
test ah, 0x44
jp 0x59230e
fstp st(0)
jmp 0x59237d
fmul qword [0x687b20]
mov edx, esi
fnstcw word [esp + 0x10]
movzx eax, word [esp + 0x10]
or eax, 0xc00
or edx, edi
mov dword [esp + 0x24], eax
fldcw word [esp + 0x24]
fistp qword [esp + 0x24]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x24], ecx
fldcw word [esp + 0x10]
mov dword [esp + 0x10], 0
jne 0x5923a5
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
mov esi, ebp
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x20]
push edi
push esi
push eax
call fcn.00590690
test eax, eax
je 0x592385
mov ecx, dword [esp + 0x24]
mov eax, 0x51eb851f
mul ecx
shr edx, 4
add edx, dword [esp + 0x10]
cmp ecx, edx
ja 0x592385
mov dword [esp + 0x20], 1
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
test ebx, ebx
je 0x592399
push ebx
call esi
mov eax, dword [esp + 0x20]
pop ebx
pop esi
pop ebp
pop edi
add esp, 0x24
ret
mov eax, ebx
jmp 0x592352