Function at 0x4037c0
Capabilities:
Get file size

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40d8d0
push eax
mov dword fs:[0], esp
sub esp, 0x254
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x18]
cmp eax, 0xffffffff
je 0x40381f
mov ecx, dword [esi + 0x1c]
xor ebp, ebp
cmp ecx, ebp
jne 0x403a51
cmp dword [esi + 0x14], 0xffffffff
je 0x403a51
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], ebp
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [esp + 0x20], ebp
ja 0x403821
cmp eax, dword [esi + 0x14]
ja 0x403821
jmp 0x403a51
xor ebp, ebp
lea edx, [esp + 0x24]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [esp + 0x2e]
mov ecx, dword [esp + 0x2a]
mov edx, dword [esp + 0x28]
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
and eax, 0xffff
push 0x5c
and ecx, 0xffff
push eax
and edx, 0xffff
push ecx
push edx
lea eax, [esp + 0x6c]
push str._04d__02d__02d
push eax
call edi
mov cl, byte [esp + 0x2b]
add esp, 0x18
mov byte [esp + 0x3c], cl
lea ecx, [esp + 0x3c]
push ebp
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea edx, [esp + 0x5c]
lea eax, [esi + 4]
push edx
lea ecx, [esp + 0x50]
push eax
push ecx
mov dword [esp + 0x278], ebp
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__
lea edx, [esp + 0x48]
mov byte [esp + 0x278], 1
push edx
push eax
call fcn.00403ad0
add esp, 0x14
lea ecx, [esp + 0x4c]
test eax, eax
push 1
mov byte [esp + 0x270], 0
sete bl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
test bl, bl
pop ebx
je 0x4038e3
push 1
lea ecx, [esp + 0x3c]
mov dword [esp + 0x26c], 0xffffffff
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
xor eax, eax
jmp 0x403a56
mov eax, dword [esp + 0x32]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2e]
and eax, 0xffff
push eax
mov eax, dword [esp + 0x30]
and ecx, 0xffff
and edx, 0xffff
push ecx
and eax, 0xffff
push edx
push eax
lea ecx, [esp + 0x16c]
push str._02d__02d__02d__03d
push ecx
call edi
mov dl, byte [esp + 0x27]
mov dword [esp + 0x2c], ebp
mov byte [esp + 0x28], dl
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
lea eax, [esp + 0x174]
lea ecx, [esp + 0x50]
push eax
lea edx, [esp + 0x64]
push ecx
push edx
mov byte [esp + 0x28c], 2
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__
lea ecx, [esp + 0x34]
mov byte [esp + 0x28c], 3
push ecx
push eax
call fcn.00403d60
mov edi, eax
mov eax, dword [esp + 0x78]
add esp, 0x2c
cmp eax, ebp
je 0x40398c
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x403983
cmp al, 0xff
je 0x403983
dec al
mov byte [ecx], al
jmp 0x40398c
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp edi, 0xffffffff
jne 0x4039eb
mov ecx, dword [esp + 0x14]
cmp ecx, ebp
je 0x4039b5
mov al, byte [ecx - 1]
test al, al
je 0x4039ab
cmp al, 0xff
je 0x4039ab
dec al
mov byte [ecx - 1], al
jmp 0x4039b5
dec ecx
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x14], ebp
cmp ecx, ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
je 0x4039e7
mov al, byte [ecx - 1]
test al, al
je 0x4039dd
cmp al, 0xff
je 0x4039dd
dec al
mov byte [ecx - 1], al
xor eax, eax
jmp 0x403a56
dec ecx
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
jmp 0x403a56
mov eax, dword [esi + 0x18]
cmp eax, 0xffffffff
je 0x4039fa
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x18], edi
cmp ecx, ebp
je 0x403a21
mov al, byte [ecx - 1]
test al, al
je 0x403a17
cmp al, 0xff
je 0x403a17
dec al
mov byte [ecx - 1], al
jmp 0x403a21
dec ecx
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x14], ebp
cmp ecx, ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
je 0x403a51
mov al, byte [ecx - 1]
test al, al
je 0x403a47
cmp al, 0xff
je 0x403a47
dec al
mov byte [ecx - 1], al
jmp 0x403a51
dec ecx
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x260]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x260
ret