Function at 0x404540
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x455f3d
mov eax, dword fs:[0]
push eax
sub esp, 0x1d0
mov eax, dword [0x46c664]
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 eax, dword [ebp + 8]
mov edi, edx
xor ebx, ebx
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x114], ecx
mov dword [ebp - 0x100], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
cmp byte [ebp + 0xc], bl
je 0x404655
cmp dword [0x470734], ebx
je 0x4045dd
push 0x470710
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, 0x20
mov dword [0x4706e8], esi
mov dword [0x4706ec], 0x45caac
mov dword [0x4706f0], 1
mov word [0x4706f4], dx
mov byte [0x4706f6], bl
lea eax, [ebp - 0x1dc]
push eax
call fcn.0040dbc0
add esp, 4
mov dword [ebp - 4], 1
cmp eax, ebx
je 0x4045fc
add eax, 0x10
jmp 0x4045fe
xor eax, eax
push str.Detaching_Cabinet_to
push eax
call fcn.0040dc20
push edi
push eax
call fcn.0040e660
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x1dc]
push ecx
call fcn.004254d0
add esp, 0x14
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x17c]
call fcn.0040d930
lea edx, [ebp - 0x17c]
mov dword [ebp - 0x108], edx
mov dword [ebp - method.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [ebp - 4], ebx
mov eax, edx
push eax
jmp 0x404700
cmp dword [0x470734], ebx
je 0x404694
push 0x470710
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, 0x20
mov dword [0x4706e8], esi
mov dword [0x4706ec], 0x45caac
mov dword [0x4706f0], 1
mov word [0x4706f4], cx
mov byte [0x4706f6], bl
lea edx, [ebp - 0x1dc]
push edx
call fcn.0040dbc0
add esp, 4
mov dword [ebp - 4], 4
cmp eax, ebx
je 0x4046b3
add eax, 0x10
jmp 0x4046b5
xor eax, eax
push str.Calculating_offset_to_attached_cabinet_file.
push eax
call fcn.0040dc20
mov dword [ebp - 4], 5
lea eax, [ebp - 0x1dc]
push eax
call fcn.004254d0
add esp, 0xc
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x17c]
call fcn.0040d930
lea ecx, [ebp - 0x17c]
mov dword [ebp - 0x108], ecx
mov dword [ebp - method.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [ebp - 4], ebx
mov edx, ecx
push edx
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0043060b
lea eax, [ebp - 0x4c]
add esp, 4
push eax
xor ecx, ecx
call fcn.0041b0c0
add esp, 4
mov eax, 7
mov dword [ebp - 4], eax
xor ecx, ecx
push ebx
lea edx, [ebp - 0x4c]
mov dword [ebp - 0xe8], eax
mov word [ebp - 0xfc], cx
push edx
or eax, 0xffffffff
lea ecx, [ebp - 0xfc]
mov dword [ebp - 0xec], ebx
call fcn.00401a90
mov byte [ebp - 4], 9
lea edi, [ebp - 0xfc]
lea ecx, [ebp - 0xe0]
call fcn.0041a0e0
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0xd8]
push eax
lea ecx, [ebp - 0xe0]
call fcn.0042fb90
mov byte [ebp - 4], 0xb
xorpd xmm0, xmm0
movlpd qword [ebp - 0xc4], xmm0
mov byte [ebp - 4], 0xc
mov ecx, edi
call fcn.0042fd10
lea ecx, [ebp - 0x4c]
mov edi, eax
mov dword [ebp - 0x108], edx
call fcn.00417730
mov esi, eax
cmp edx, 1
jl 0x4047e7
jg 0x4047b3
cmp esi, ebx
jbe 0x4047e7
xor ecx, ecx
push 0x17
mov eax, str.File_is_larger_then_4GB
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
call fcn.0040e990
mov byte [ebp - 4], 0xc
push 0x4630f4
lea edx, [ebp - 0x30]
push edx
call fcn.00436bf2
cmp edx, dword [ebp - 0x108]
jg 0x404829
jl 0x4047f5
cmp esi, edi
ja 0x404829
xor eax, eax
mov word [ebp - 0x2c], ax
push 0x13
mov eax, str.No_archive_attached
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
call fcn.0040e990
mov byte [ebp - 4], 0xc
push 0x4630f4
lea ecx, [ebp - 0x30]
push ecx
call fcn.00436bf2
mov eax, dword [ebp - 0xc8]
add edi, eax
mov dword [ebp - 0x108], eax
lea eax, [esi + eax - 4]
mov dword [ebp - 0x104], eax
cmp edi, eax
jae 0x40486e
push 4
push str.MSCF
push edi
call fcn.00432d3e
add esp, 0xc
test eax, eax
je 0x404864
inc edi
cmp edi, dword [ebp - 0x104]
jb 0x404845
jmp 0x40486e
mov dword [ebp - 0x104], edi
cmp edi, ebx
jne 0x4048a2
xor edx, edx
push 0x13
mov eax, str.No_archive_attached
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
call fcn.0040e990
mov byte [ebp - 4], 0xc
push 0x4630f4
lea eax, [ebp - 0x30]
push eax
call fcn.00436bf2
mov ecx, dword [ebp - 0x114]
mov eax, edi
sub eax, dword [ebp - 0x108]
sub esi, eax
mov edi, esi
mov dword [ecx], eax
mov dword [ebp - 0x108], edi
cmp byte [ebp + 0xc], bl
jne 0x404a1b
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
cmp dword [0x470734], ebx
je 0x40490c
push 0x470710
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, 0x20
mov dword [0x4706e8], esi
mov dword [0x4706ec], 0x45caac
mov dword [0x4706f0], 1
mov word [0x4706f4], dx
mov byte [0x4706f6], bl
lea eax, [ebp - 0x1dc]
push eax
call fcn.0040dbc0
add esp, 4
mov byte [ebp - 4], 0x10
cmp eax, ebx
je 0x404928
add eax, 0x10
jmp 0x40492a
xor eax, eax
mov ecx, dword [ebp - 0x114]
mov edx, dword [ecx]
push edi
push str._and_has_size
push edx
push str.Attached_cabfile_starts_at_offset
push eax
call fcn.0040dc20
add esp, 8
push eax
call fcn.0041bd10
push eax
call fcn.0040dc20
add esp, 8
push eax
call fcn.0041bd10
mov byte [ebp - 4], 0x11
lea eax, [ebp - 0x1dc]
push eax
call fcn.004254d0
add esp, 4
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x17c]
call fcn.0040d930
lea ecx, [ebp - 0x17c]
mov dword [ebp - 0x108], ecx
mov dword [ebp - method.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov byte [ebp - 4], 0xc
mov edx, ecx
push edx
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0043060b
mov esi, dword [ebp - 0x110]
mov ecx, dword [ebp - 0x118]
add esp, 4
xor eax, eax
mov edi, 7
push ebx
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
mov word [esi], ax
push ecx
or eax, 0xffffffff
mov ecx, esi
call fcn.00401a90
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x100], 1
mov byte [ebp - 4], 7
lea edx, [ebp - 0xfc]
push edx
call fcn.00404db0
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x38], 8
jb 0x404a08
mov eax, dword [ebp - 0x4c]
push eax
call fcn.0043266a
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], ebx
mov word [ebp - 0x4c], cx
mov eax, esi
jmp 0x404d86
mov eax, dword [ebp - 0x118]
xor edx, edx
cmp dword [eax + 0x10], ebx
jne 0x404a9f
push 6
mov eax, str.SAPFEI
lea esi, [ebp - 0xa0]
mov dword [ebp - 0x8c], 7
mov dword [ebp - 0x90], ebx
mov word [ebp - 0xa0], dx
call fcn.0040e990
mov byte [ebp - 4], 0x15
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x100], 2
call fcn.00418ce0
mov dword [ebp - 4], 0x16
lea ecx, [ebp - 0xbc]
push ecx
mov edx, esi
mov ecx, eax
mov dword [ebp - 0x100], 6
call fcn.00418fd0
add esp, 8
mov dword [ebp - 4], 0x17
mov dword [ebp - 0x100], 0xe
jmp 0x404ade
push ebx
push eax
or eax, 0xffffffff
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x70], 7
mov dword [ebp - 0x74], ebx
mov word [ebp - 0x84], dx
call fcn.00401a90
mov dword [ebp - 4], 0x17
lea eax, [ebp - 0x84]
mov dword [ebp - 4], 0x19
mov dword [ebp - 0x100], 0x10
xor ecx, ecx
push ebx
mov word [ebp - 0x68], cx
push eax
mov edi, 7
or eax, 0xffffffff
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x58], ebx
call fcn.00401a90
mov eax, 0x1c
mov dword [ebp - 4], eax
test byte [ebp - 0x100], 0x10
je 0x404b41
and dword [ebp - 0x100], 0xffffffef
mov byte [ebp - 4], al
mov esi, 8
cmp dword [ebp - 0x70], esi
jb 0x404b30
mov edx, dword [ebp - 0x84]
push edx
call fcn.0043266a
add esp, 4
xor eax, eax
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x74], ebx
mov word [ebp - 0x84], ax
jmp 0x404b46
mov esi, 8
mov al, 0x1e
mov byte [ebp - 4], al
test byte [ebp - 0x100], 8
je 0x404b8a
and dword [ebp - 0x100], 0xfffffff7
mov byte [ebp - 4], al
cmp dword [ebp - 0xa8], esi
jb 0x404b75
mov ecx, dword [ebp - 0xbc]
push ecx
call fcn.0043266a
add esp, 4
xor edx, edx
mov dword [ebp - 0xa8], edi
mov dword [ebp - 0xac], ebx
mov word [ebp - 0xbc], dx
mov byte [ebp - 4], 0x20
test byte [ebp - 0x100], 4
je 0x404bbf
and dword [ebp - 0x100], 0xfffffffb
mov byte [ebp - 4], 0x20
cmp dword [ebp - 0x18], esi
jb 0x404bb3
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0043266a
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
mov byte [ebp - 4], 0x22
test byte [ebp - 0x100], 2
je 0x404bff
and dword [ebp - 0x100], 0xfffffffd
cmp dword [ebp - 0x8c], esi
jb 0x404bea
mov edx, dword [ebp - 0xa0]
push edx
call fcn.0043266a
add esp, 4
xor eax, eax
mov dword [ebp - 0x8c], edi
mov dword [ebp - 0x90], ebx
mov word [ebp - 0xa0], ax
lea edi, [ebp - 0x68]
lea ecx, [ebp - 0x120]
call fcn.00419e80
mov byte [ebp - 4], 0x23
mov esi, dword [ebp - 0x108]
mov ecx, dword [ebp - 0x120]
push ebx
lea edi, [esi + 1]
push edi
push ebx
push 4
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x108], ebx
mov byte [ebp - 4], 0x24
push edi
push ebx
push ebx
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
or edi, 0xffffffff
mov dword [ebp - 0x134], edi
mov dword [ebp - 0x130], ebx
mov byte [ebp - 4], 0x25
mov dword [ebp - 0x12c], edi
mov dword [ebp - 0x128], ebx
mov byte [ebp - 4], 0x26
mov dword [ebp - 0x124], eax
mov byte [ebp - 4], 0x27
mov eax, dword [ebp - 0x124]
cmp eax, ebx
jne 0x404cba
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x30], eax
xor edx, edx
push 0x2c
mov eax, str.MapViewOfFile___for_detached_cabfile_failed.
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
call fcn.0040e990
mov byte [ebp - 4], 0x27
push 0x4630f4
lea eax, [ebp - 0x30]
push eax
call fcn.00436bf2
mov ecx, dword [ebp - 0x104]
push esi
push ecx
push eax
call fcn.00436cd0
mov ecx, dword [ebp - 0x110]
add esp, 0xc
push ebx
lea eax, [ebp - 0x68]
xor edx, edx
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], ebx
mov eax, edi
mov word [ecx], dx
call fcn.00401a90
mov byte [ebp - 4], 0x27
or dword [ebp - 0x100], 1
mov byte [ebp - 4], 0x24
lea ecx, [ebp - 0x134]
push ecx
call fcn.00401b90
mov byte [ebp - 4], 0x23
lea esi, [ebp - 0x10c]
call fcn.004074c0
mov byte [ebp - 4], 0x22
lea esi, [ebp - 0x120]
call fcn.004074c0
mov byte [ebp - 4], 0xc
mov esi, 8
cmp dword [ebp - 0x54], esi
jb 0x404d3f
mov edx, dword [ebp - 0x68]
push edx
call fcn.0043266a
add esp, 4
mov edi, 7
xor eax, eax
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x58], ebx
mov word [ebp - 0x68], ax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xfc]
push ecx
call fcn.00404db0
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x38], esi
jb 0x404d74
mov edx, dword [ebp - 0x4c]
push edx
call fcn.0043266a
add esp, 4
xor eax, eax
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], ebx
mov word [ebp - 0x4c], ax
mov eax, dword [ebp - 0x110]
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.00432675
mov esp, ebp
pop ebp
ret 8