Function at 0x457680
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a138d
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x4cc680]
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 esi, ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov edi, dword [esi + 8]
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x48], 0
mov ecx, dword [ebp + 0x30]
mov byte [ebp - 4], 2
test ecx, ecx
je 0x4576dd
mov eax, dword [ecx]
lea edx, [ebp - 0x6c]
push edx
call dword [eax]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 0x58]
mov byte [ebp - 4], 4
test ecx, ecx
je 0x457700
mov eax, dword [ecx]
lea edx, [ebp - 0x44]
push edx
call dword [eax]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 6
push eax
lea ecx, [edi + 0x20]
call fcn.00456e20
lea eax, [ebp - 0x6c]
push eax
lea ecx, [edi + 0x48]
call fcn.00456e20
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x45773a
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x44]
cmp ecx, eax
setne al
push eax
call edx
mov dword [ebp - 0x20], 0
mov ecx, dword [ebp - 0x48]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x457756
mov edx, dword [ecx]
lea eax, [ebp - 0x6c]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov edi, dword [esi + 8]
mov dword [edi + 0x74], 0
mov dword [edi + 0x7c], 0
mov dword [edi + 0x78], 0
mov dword [edi + 0x80], 0
cmp dword [ebx + 0x14], 7
jbe 0x457780
mov ebx, dword [ebx]
push 0
push 0
push 4
push 0
push 0
push 0x40010000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [edi + 0x70]
mov ebx, eax
cmp ecx, ebx
je 0x4577b4
test ecx, ecx
je 0x4577af
cmp ecx, 0xffffffff
je 0x4577af
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x70], ebx
mov ecx, ebx
test ecx, ecx
je 0x45785e
cmp ecx, 0xffffffff
je 0x45785e
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
push ecx
mov dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov eax, dword [ebp - 0x1c]
mov dword [edi + 0x74], eax
mov dword [edi + 0x7c], eax
mov eax, dword [esi + 8]
cmp dword [eax + 0x74], 0
jbe 0x4577fc
mov byte [eax], 1
mov ecx, esi
mov eax, dword [esi]
push 0
call dword [eax + 0x20]
mov eax, dword [esi]
mov ecx, esi
push esi
push 0x457080
call dword [eax + 0x44]
mov ecx, dword [ebp + 0x30]
test ecx, ecx
je 0x457828
mov edx, dword [ecx]
lea eax, [ebp + 0xc]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp + 0x30], 0
mov ecx, dword [ebp + 0x58]
test ecx, ecx
je 0x457840
mov edx, dword [ecx]
lea eax, [ebp + 0x34]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
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.004759c3
mov esp, ebp
pop ebp
ret 0x54
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4577e7
push eax
push 0x4af844
mov ecx, esi
call fcn.004502d0
mov esi, dword [esi + 8]
mov eax, dword [esi + 0x70]
test eax, eax
je 0x4578a7
cmp eax, 0xffffffff
je 0x4578a7
cmp dword [esi + 0x74], 0
je 0x457894
cmp dword [esi + 0x78], 0
je 0x4578a7
push 1
lea ecx, [ebp - 0x11]
mov byte [ebp - 0x11], 1
push ecx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_SetFileInformationByHandle]
mov eax, dword [esi + 0x70]
test eax, eax
je 0x4578c1
cmp eax, 0xffffffff
je 0x4578ba
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x70], 0
mov ecx, dword [esi + 0x6c]
mov dword [ebp - 0x18], 7
test ecx, ecx
je 0x4578dd
mov eax, dword [ecx]
lea edx, [ebp - 0x18]
push edx
call dword [eax + 8]
jmp 0x457809
call fcn.0047445a
int3