Function at 0x47e220
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4f72bc]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [0x506e0c], 0
push esi
push edi
mov edi, ecx
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x240], edi
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], eax
je 0x47e28d
push str.KERNEL32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x47e28d
push str.Wow64DisableWow64FsRedirection
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x47e286
lea ecx, [ebp - 0x238]
push ecx
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 0x238], esi
cmp esi, 0xffffffff
jne 0x47e357
cmp dword [0x4f8b70], 0x270f
jge 0x47e2ff
lea edi, [ebp - 0x224]
call fcn.004834a0
push str.GetLastError:__
mov esi, edi
call fcn.0047da70
mov esi, dword [ebp - 0x240]
add esp, 4
push str.GetMyFileTime__CreateFile_OPEN_EXITING____
call fcn.0047da70
add esp, 4
push 0x4e8d38
mov esi, 0x4e8d38
call fcn.0047da70
add esp, 4
cmp dword [0x506e0c], 0
lea edx, [ebp - 0x23c]
mov dword [ebp - 0x238], edx
je 0x47e345
push str.KERNEL32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x47e345
push str.Wow64RevertWow64FsRedirection
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x47e33e
lea ecx, [ebp - 0x238]
push ecx
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004cf2b6
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x25c]
push edx
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x254]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
jne 0x47e42b
cmp dword [0x4f8b70], 0x270f
jge 0x47e3cc
lea edi, [ebp - 0x224]
call fcn.004834a0
push str.GetLastError:__
mov esi, edi
call fcn.0047da70
mov esi, dword [ebp - 0x240]
add esp, 4
push str.GetMyFileTime__GetFileTime____
call fcn.0047da70
add esp, 4
push 0x4e8d38
mov esi, 0x4e8d38
call fcn.0047da70
mov esi, dword [ebp - 0x238]
add esp, 4
cmp dword [0x506e0c], 0
lea edx, [ebp - 0x23c]
mov dword [ebp - 0x238], edx
je 0x47e412
push str.KERNEL32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x47e412
push str.Wow64RevertWow64FsRedirection
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x47e40b
lea ecx, [ebp - 0x238]
push ecx
call eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004cf2b6
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x24c]
push edx
push esi
mov dword [ebp - 0x24c], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push esi
mov dword [ebx + 0x78], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0xffffffff
jne 0x47e4b3
cmp dword [0x4f8b70], 0x270f
jge 0x47e49f
lea edi, [ebp - 0x224]
call fcn.004834a0
push str.GetLastError:__
mov esi, edi
call fcn.0047da70
mov esi, dword [ebp - 0x240]
add esp, 4
push str.GetMyFileTime__GetFileSize____
call fcn.0047da70
add esp, 4
push 0x4e8d38
mov esi, 0x4e8d38
call fcn.0047da70
add esp, 4
push 0x18
lea edx, [ebp - 0x20]
mov ecx, 0x39b
call fcn.004ca1e0
add esp, 4
jmp 0x47e4c1
push edi
push 0x18
lea ecx, [ebp - 0x20]
call fcn.0047ff80
add esp, 8
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebx + 0x60]
mov edx, 0x7ffffffe
mov eax, 0x18
call fcn.004010b0
mov edi, dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea ecx, [ebp - 0x248]
push ecx
lea edx, [ebp - 0x254]
push edx
call edi
mov esi, dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x47e52e
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x248]
push ecx
call esi
lea edx, [ebp - 0x20]
push edx
lea ecx, [ebp - 0x234]
call fcn.0047fb70
add esp, 4
lea eax, [ebp - 0x20]
push eax
mov edx, 0x7ffffffe
mov eax, 0x18
mov ecx, ebx
call fcn.004010b0
lea ecx, [ebp - 0x248]
push ecx
lea edx, [ebp - 0x264]
push edx
call edi
test eax, eax
je 0x47e57a
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x248]
push ecx
call esi
lea edx, [ebp - 0x20]
push edx
lea ecx, [ebp - 0x234]
call fcn.0047fb70
add esp, 4
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebx + 0x18]
mov edx, 0x7ffffffe
mov eax, 0x18
call fcn.004010b0
lea ecx, [ebp - 0x248]
push ecx
lea edx, [ebp - 0x25c]
push edx
call edi
test eax, eax
je 0x47e5c6
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x248]
push ecx
call esi
lea edx, [ebp - 0x20]
push edx
lea ecx, [ebp - 0x234]
call fcn.0047fb70
add esp, 4
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebx + 0x30]
mov edx, 0x7ffffffe
mov eax, 0x18
call fcn.004010b0
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 0x240]
push ecx
lea edi, [ebp - 0x20]
call fcn.0047f8b0
add esp, 4
test eax, eax
je 0x47e5f4
mov edx, edi
push edx
lea ecx, [ebx + 0x48]
mov edx, 0x7ffffffe
mov eax, 0x18
call fcn.004010b0
cmp dword [0x506e0c], 0
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x238], eax
je 0x47e63a
push str.KERNEL32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x47e63a
push str.Wow64RevertWow64FsRedirection
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x47e633
lea ecx, [ebp - 0x238]
push ecx
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
mov eax, 1
pop esi
call fcn.004cf2b6
mov esp, ebp
pop ebp
ret