Function at 0x40f4c0
Capabilities:
Get file size

Disassembly:
push ebp
mov ecx, 0x40fa61
mov ebp, esp
sub esp, 0x1f8
lea edx, [ebp - 0x14c]
movzx eax, byte [ebp + 0x10]
mov dword [ebp - 0xc], ebx
lea ebx, [ebp - 0x18]
mov dword [ebp - 8], esi
mov esi, 0x5200a8
mov dword [ebp - 4], edi
mov edi, sym.___gxx_personality_sj0
mov byte [ebp - 0x16d], al
mov dword [ebp - 0x134], edi
mov dword [ebp - 0x130], esi
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 0x128], ecx
mov dword [ebp - 0x124], esp
mov dword [esp], edx
call sym.__Unwind_SjLj_Register
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40f52a
mov edx, dword [ebp + 0xc]
mov dword [edx], 0
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x40f539
mov ebx, dword [ebp + 8]
cmp byte [ebx], 0
jne 0x40f565
mov ecx, 0xffffffff
mov dword [ebp - 0x16c], ecx
lea eax, [ebp - 0x14c]
mov dword [esp], eax
call sym.__Unwind_SjLj_Unregister
mov eax, dword [ebp - 0x16c]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x98]
mov eax, 0xffffffff
mov dword [esp], edx
lea edi, [ebp - 0x98]
lea esi, [ebp - 0x98]
mov dword [esp + 4], ecx
mov dword [ebp - 0x148], eax
call sym._strcpy
mov dword [esp], edi
call sym.os_dirtrans_char_
mov dword [esp + 4], esi
mov dword [esp], 0x563600
call method.c_SynchFile.GetSynFileName_char_const_
test eax, eax
je 0x40f5bf
mov dword [esp + 4], eax
lea ebx, [ebp - 0x98]
mov dword [esp], ebx
call sym._strcpy
lea edx, [ebp - 0xb8]
mov esi, 0x12
lea eax, [ebp - 0x98]
mov dword [esp + 8], edx
lea edi, [ebp - 0xa8]
mov dword [esp + 4], eax
mov dword [esp], edi
mov dword [ebp - 0x148], esi
call method.std::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_char_const__std::allocator_char__const_
mov dword [esp], 0x55e928
mov ebx, 0x55e928
mov ecx, 0x11
mov dword [ebp - 0xc8], ebx
mov dword [ebp - 0x148], ecx
call sub.KERNEL32.dll_EnterCriticalSection
sub esp, 4
lea esi, [ebp - 0xa8]
mov dword [esp + 4], esi
mov dword [esp], 0x55e958
call method.std::_Rb_tree_std::string__std::pair_std::string_const__DC_FILEMAP___std::_Select1st_std::pair_std::string_const__DC_FILEMAP_____std::less_std::string___std::allocator_std::pair_std::string_const__DC_FILEMAP_____.find_std::string_const_
cmp eax, 0x55e95c
jne 0x40f9d4
cmp byte [ebp - 0x16d], 0x43
sete al
cmp byte [ebp - 0x16d], 0x57
sete cl
or al, cl
jne 0x40fbec
cmp byte [ebp - 0x16d], 0x52
je 0x40fc18
xor edx, edx
mov eax, pe_nt_image_headers32
mov ecx, 3
mov dword [esp + 0x18], edx
xor edi, edi
xor esi, esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov edi, 0xc0000000
lea esi, [ebp - 0x98]
mov ebx, 0x10
mov dword [esp + 4], edi
mov dword [esp], esi
mov dword [ebp - 0x148], ebx
call sub.KERNEL32.dll_CreateFileA
mov dword [ebp - 0x184], eax
sub esp, 0x1c
cmp dword [ebp - 0x184], 0xffffffff
je 0x40fc72
mov eax, dword [ebp - 0x184]
xor edx, edx
mov ecx, 0x10
mov dword [esp + 4], edx
mov dword [ebp - 0x148], ecx
mov dword [esp], eax
call sub.KERNEL32.dll_GetFileSize
mov dword [ebp - 0x180], eax
sub esp, 8
test eax, eax
jne 0x40f6e8
mov eax, 1
mov dword [esp + 0x10], eax
mov esi, dword [ebp - 0x184]
xor edx, edx
mov dword [esp + 0x14], edx
xor eax, eax
mov ecx, 4
mov dword [esp + 0xc], eax
xor edi, edi
mov ebx, 0x10
mov dword [esp + 8], ecx
mov dword [esp + 4], edi
mov dword [esp], esi
mov dword [ebp - 0x148], ebx
call sub.KERNEL32.dll_CreateFileMappingA
mov dword [ebp - 0x188], eax
sub esp, 0x18
test eax, eax
je 0x40fdc0
mov edi, dword [ebp - 0x188]
xor ebx, ebx
xor edx, edx
mov dword [esp + 0x10], ebx
xor eax, eax
mov ecx, 2
mov dword [esp + 0xc], edx
mov esi, 0x10
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edi
mov dword [ebp - 0x148], esi
call sub.KERNEL32.dll_MapViewOfFile
mov dword [ebp - 0x18c], eax
sub esp, 0x14
test eax, eax
je 0x40fe44
mov dword [esp], 0x9c
mov eax, 0x10
mov dword [ebp - 0x148], eax
call sym.operator_new_unsigned_int_
mov dword [ebp - 0x190], eax
mov esi, dword [ebp - 0x184]
mov edx, 1
mov dword [eax + 0x8c], edx
mov ebx, dword [ebp - 0x188]
mov ecx, dword [ebp - 0x18c]
mov dword [eax + 0x80], esi
mov edi, dword [ebp - 0x180]
mov esi, pe_nt_image_headers32
mov dword [eax + 0x84], ebx
lea ebx, [ebp - 0x98]
mov dword [eax + 0x88], ecx
mov dword [eax + 0x90], edi
mov dword [esp], 0
call sym._time
mov edx, dword [ebp - 0x190]
mov dword [edx + 0x94], eax
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], edx
call sym._strncpy
lea eax, [ebp - 0x98]
mov dword [esp], eax
call sym.IsHoldOpenFile_char_
mov ebx, dword [ebp - 0x190]
test al, al
lea edx, [ebp - 0xa8]
lea ecx, [ebp - 0x118]
mov edi, 0x10
sete byte [ebx + 0x98]
mov dword [esp + 4], edx
mov dword [esp], ecx
mov dword [ebp - 0x148], edi
call method.std::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_std::string_const_
lea edi, [ebp - 0x118]
mov esi, 0xf
lea eax, [ebp - 0x108]
mov dword [esp + 4], edi
mov dword [esp], eax
mov dword [ebp - 0x148], esi
call method.std::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_std::string_const_
mov esi, dword [ebp - 0x190]
lea ebx, [ebp - 0x108]
mov ecx, 0xe
mov dword [esp + 4], ebx
lea edx, [ebp - 0xf8]
mov dword [esp], edx
mov dword [ebp - 0x104], esi
mov dword [ebp - 0x148], ecx
call method.std::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_std::string_const_
mov dword [esp], 0x55e958
mov ecx, dword [ebp - 0x104]
lea edi, [ebp - 0xf8]
mov dword [esp + 4], edi
mov eax, 0xd
mov dword [ebp - 0x148], eax
mov dword [ebp - 0xf4], ecx
call method.std::_Rb_tree_std::string__std::pair_std::string_const__DC_FILEMAP___std::_Select1st_std::pair_std::string_const__DC_FILEMAP_____std::less_std::string___std::allocator_std::pair_std::string_const__DC_FILEMAP_____.insert_unique_std::pair_std::str
mov eax, dword [ebp - 0xf8]
lea ebx, [eax - 0xc]
cmp ebx, 0x5315b0
mov dword [ebp - 0x19c], ebx
jne 0x40ff24
mov eax, dword [ebp - 0x108]
lea ebx, [eax - 0xc]
cmp ebx, 0x5315b0
mov dword [ebp - 0x1a8], ebx
jne 0x40fff0
mov eax, dword [ebp - 0x118]
lea ebx, [eax - 0xc]
cmp ebx, 0x5315b0
mov dword [ebp - 0x1b4], ebx
jne 0x40ffac
mov dword [esp], 0x55e940
mov ebx, dword [ebp - 0x184]
mov edx, dword [ebp - 0x190]
mov dword [ebp - 0x160], ebx
mov eax, dword [ebp - 0x160]
mov dword [ebp - 0x15c], edx
mov ecx, dword [ebp - 0x15c]
lea ebx, [ebp - 0x158]
mov dword [esp + 4], ebx
mov edx, 0x10
mov dword [ebp - 0x168], eax
mov edi, dword [ebp - 0x168]
mov dword [ebp - 0x164], ecx
mov esi, dword [ebp - 0x164]
mov dword [ebp - 0x158], edi
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x154], esi
call method.std::_Rb_tree_void__std::pair_void_const__DC_FILEMAP___std::_Select1st_std::pair_void_const__DC_FILEMAP_____std::less_void___std::allocator_std::pair_void_const__DC_FILEMAP_____.insert_unique_std::pair_void_const__DC_FILEMAP__const_
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x40f98c
mov ecx, dword [ebp - 0x190]
mov edi, dword [ebp + 0xc]
mov dword [edi], ecx
mov edx, dword [ebp - 0xc8]
mov eax, 0x11
mov dword [ebp - 0x148], eax
mov dword [esp], edx
call sub.KERNEL32.dll_LeaveCriticalSection
mov eax, dword [ebp - 0xa8]
sub esp, 4
lea ebx, [eax - 0xc]
mov dword [ebp - 0x1c0], ebx
cmp ebx, 0x5315b0
jne 0x40ff68
mov edx, dword [ebp - 0x184]
mov dword [ebp - 0x16c], edx
jmp 0x40f544
mov eax, dword [eax + 0x14]
inc dword [eax + 0x8c]
mov dword [ebp - 0x178], eax
mov dword [esp], 0
call sym._time
mov edi, dword [ebp + 0xc]
mov edx, dword [ebp - 0x178]
test edi, edi
mov dword [edx + 0x94], eax
je 0x40fa07
mov ecx, dword [ebp + 0xc]
mov dword [ecx], edx
mov edi, dword [ebp - 0x178]
mov edx, 0x11
mov ebx, dword [ebp - 0xc8]
mov esi, dword [edi + 0x80]
mov dword [esp], ebx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x17c], esi
call sub.KERNEL32.dll_LeaveCriticalSection
mov eax, dword [ebp - 0xa8]
sub esp, 4
lea ecx, [eax - 0xc]
mov dword [ebp - 0x1d0], ecx
cmp ecx, 0x5315b0
jne 0x40fd78
mov edi, dword [ebp - 0x17c]
mov dword [ebp - 0x16c], edi
jmp 0x40f544
xor esi, esi
mov ebx, pe_nt_image_headers32
mov edx, 4
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edx
xor ebx, ebx
mov edx, 1
mov dword [esp + 0xc], ebx
mov dword [esp + 8], edx
jmp 0x40f67f
xor eax, eax
mov ecx, pe_nt_image_headers32
mov edi, 3
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edi
jmp 0x40fc04
mov eax, dword [ebp - 0xc8]
mov ecx, 0x11
mov dword [ebp - 0x148], ecx
mov dword [esp], eax
call sub.KERNEL32.dll_LeaveCriticalSection
mov eax, dword [ebp - 0xa8]
sub esp, 4
lea edx, [eax - 0xc]
mov dword [ebp - 0x1cc], edx
cmp edx, 0x5315b0
je 0x40f539
mov esi, 0xffffffff
sub eax, 4
mov ebx, 2
mov dword [esp + 4], esi
mov dword [esp], eax
mov dword [ebp - 0x148], ebx
call method.__gnu_cxx.__exchange_and_add_int_volatile__int_
test eax, eax
jg 0x40f539
mov edx, dword [ebp - 0x1cc]
lea edi, [ebp - 0xb8]
mov dword [esp + 4], edi
mov dword [esp], edx
call method.std::string::_Rep._M_destroy_std::allocator_char__const_
jmp 0x40f539
sub eax, 4
mov edx, 0xffffffff
mov dword [esp], eax
mov eax, 1
mov dword [esp + 4], edx
mov dword [ebp - 0x148], eax
call method.__gnu_cxx.__exchange_and_add_int_volatile__int_
test eax, eax
jg 0x40fa50
mov ebx, dword [ebp - 0x1d0]
lea esi, [ebp - 0xb8]
mov dword [esp + 4], esi
mov dword [esp], ebx
call method.std::string::_Rep._M_destroy_std::allocator_char__const_
jmp 0x40fa50
mov ebx, dword [ebp - 0x184]
mov dword [esp], ebx
call sub.KERNEL32.dll_CloseHandle
mov edi, dword [ebp - 0xc8]
sub esp, 4
mov esi, 0x11
mov dword [ebp - 0x148], esi
mov dword [esp], edi
call sub.KERNEL32.dll_LeaveCriticalSection
mov eax, dword [ebp - 0xa8]
sub esp, 4
lea ecx, [eax - 0xc]
mov dword [ebp - 0x1c8], ecx
cmp ecx, 0x5315b0
je 0x40f539
sub eax, 4
mov edx, 0xffffffff
mov dword [esp], eax
mov eax, 3
mov dword [esp + 4], edx
mov dword [ebp - 0x148], eax
call method.__gnu_cxx.__exchange_and_add_int_volatile__int_
test eax, eax
jg 0x40f539
mov edx, dword [ebp - 0x1c8]
lea ebx, [ebp - 0xb8]
mov dword [esp + 4], ebx
jmp 0x40fce0
mov esi, dword [ebp - 0x188]
mov dword [esp], esi
call sub.KERNEL32.dll_CloseHandle
mov edi, dword [ebp - 0x184]
sub esp, 4
mov dword [esp], edi
call sub.KERNEL32.dll_CloseHandle
mov eax, dword [ebp - 0xc8]
sub esp, 4
mov ecx, 0x11
mov dword [ebp - 0x148], ecx
mov dword [esp], eax
call sub.KERNEL32.dll_LeaveCriticalSection
mov eax, dword [ebp - 0xa8]
sub esp, 4
lea edx, [eax - 0xc]
mov dword [ebp - 0x1c4], edx
cmp edx, 0x5315b0
je 0x40f539
mov esi, 0xffffffff
sub eax, 4
mov ebx, 4
mov dword [esp + 4], esi
mov dword [esp], eax
mov dword [ebp - 0x148], ebx
call method.__gnu_cxx.__exchange_and_add_int_volatile__int_
test eax, eax
jg 0x40f539
mov edx, dword [ebp - 0x1c4]
lea edi, [ebp - 0xb8]
mov dword [esp + 4], edi
jmp 0x40fce0
mov edi, 0xffffffff
sub eax, 4
mov esi, 0xb
mov dword [esp + 4], edi
mov dword [esp], eax
mov dword [ebp - 0x148], esi
call method.__gnu_cxx.__exchange_and_add_int_volatile__int_
test eax, eax
jg 0x40f8db
mov eax, dword [ebp - 0x19c]
lea ecx, [ebp - 0xb8]
mov dword [esp + 4], ecx
mov dword [esp], eax
call method.std::string::_Rep._M_destroy_std::allocator_char__const_
jmp 0x40f8db
mov edi, 0xffffffff
sub eax, 4
mov esi, 5
mov dword [esp + 4], edi
mov dword [esp], eax
mov dword [ebp - 0x148], esi
call method.__gnu_cxx.__exchange_and_add_int_volatile__int_
test eax, eax
jg 0x40f9c3
mov ecx, dword [ebp - 0x1c0]
lea eax, [ebp - 0xb8]
mov dword [esp + 4], eax
mov dword [esp], ecx
call method.std::string::_Rep._M_destroy_std::allocator_char__const_
jmp 0x40f9c3
mov edi, 0xffffffff
sub eax, 4
mov esi, 7
mov dword [esp + 4], edi
mov dword [esp], eax
mov dword [ebp - 0x148], esi
call method.__gnu_cxx.__exchange_and_add_int_volatile__int_
test eax, eax
jg 0x40f911
mov eax, dword [ebp - 0x1b4]
lea ecx, [ebp - 0xb8]
mov dword [esp + 4], ecx
mov dword [esp], eax
call method.std::string::_Rep._M_destroy_std::allocator_char__const_
jmp 0x40f911
mov edi, 0xffffffff
sub eax, 4
mov esi, 9
mov dword [esp + 4], edi
mov dword [esp], eax
mov dword [ebp - 0x148], esi
call method.__gnu_cxx.__exchange_and_add_int_volatile__int_
test eax, eax
jg 0x40f8f6
mov eax, dword [ebp - 0x1a8]
lea ecx, [ebp - 0xb8]
mov dword [esp + 4], ecx
mov dword [esp], eax
call method.std::string::_Rep._M_destroy_std::allocator_char__const_
jmp 0x40f8f6