Function at 0x406d60
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x407b54
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x40d028]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x28], 0
xor eax, eax
mov word [ebp - 0x27], ax
xor ecx, ecx
mov dword [ebp - 0x25], ecx
mov word [ebp - 0x21], cx
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00406c80
add esp, 8
movzx ecx, byte [ebp - 0x28]
cmp ecx, 0x46
jne 0x406dc9
movzx edx, byte [ebp - 0x27]
cmp edx, 0x4c
jne 0x406dc9
movzx eax, byte [ebp - 0x26]
cmp eax, 0x56
je 0x406ddf
lea ecx, [ebp - 0x74]
call fcn.004018b0
push 0x40ac0c
lea ecx, [ebp - 0x74]
push ecx
call sub.MSVCR90.dll__CxxThrowException
mov byte [ebp - 0x1c], 0
xor edx, edx
mov dword [ebp - 0x1b], edx
mov dword [ebp - 0x17], edx
mov word [ebp - 0x13], dx
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00406d00
add esp, 8
movzx edx, byte [ebp - 0x1c]
cmp edx, 8
je 0x406e11
movzx eax, byte [ebp - 0x1c]
cmp eax, 9
jne 0x406e1d
fldz
jmp 0x406fa9
movzx ecx, byte [ebp - 0x1c]
cmp ecx, 0x12
jne 0x406f8d
movzx edx, byte [ebp - 0x1b]
shl edx, 0x10
movzx eax, byte [ebp - 0x1a]
shl eax, 8
add edx, eax
movzx ecx, byte [ebp - 0x19]
add edx, ecx
mov dword [ebp - 0x30], edx
mov edx, dword [ebp - 0x30]
add edx, 0x18
mov dword [ebp - 0x34], edx
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x34]
push ecx
push 0
push 0
push 4
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x406f6f
mov eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x54]
call fcn.00401950
mov dword [ebp - 4], 0
push 0
push 0x409a4c
lea ecx, [ebp - 0x54]
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int_const]
mov dword [ebp - 0x58], eax
mov edx, dword [sym.imp.MSVCP90.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov eax, dword [ebp - 0x58]
cmp eax, dword [edx]
je 0x406f3d
fldz
fstp qword [ebp - 0x64]
push str.duration
call sub.MSVCR90.dll_strlen
add esp, 4
mov ecx, dword [ebp - 0x58]
lea edx, [ecx + eax + 1]
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x68], 7
jmp 0x406eec
mov eax, dword [ebp - 0x68]
sub eax, 1
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0xffffffff
jle 0x406f0c
mov ecx, dword [ebp - 0x2c]
add ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x68]
mov al, byte [ecx]
mov byte [ebp + edx - 0x64], al
mov ecx, dword [ebp - 0x5c]
add ecx, 1
mov dword [ebp - 0x5c], ecx
jmp 0x406ee3
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
fld qword [ebp - 0x64]
fstp qword [ebp - 0x7c]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
fld qword [ebp - 0x7c]
jmp 0x406fa9
fldz
fstp qword [ebp - 0x84]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
fld qword [ebp - 0x84]
jmp 0x406fa9
lea ecx, [ebp - 0x90]
call fcn.004018b0
push 0x40ac0c
lea ecx, [ebp - 0x90]
push ecx
call sub.MSVCR90.dll__CxxThrowException
jmp 0x406fa9
lea ecx, [ebp - 0x9c]
call fcn.004018b0
push 0x40ac0c
lea edx, [ebp - 0x9c]
push edx
call sub.MSVCR90.dll__CxxThrowException
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040462e
mov esp, ebp
pop ebp
ret