Function at 0x40d580
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42f4dd
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x441070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x224], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov dword [ebp - 0x244], edi
mov byte [edi], 0
mov dword [ebp - 4], 0
mov eax, edi
cmp dword [edi + 0x14], 0x10
mov dword [ebp - 0x224], 1
mov dword [edi + 0x10], 0
jb 0x40d5f8
mov eax, dword [edi]
push 0x208
mov byte [eax], 0
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00412cb0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40d874
xor esi, esi
mov dword [ebp - method.CTagExtractor.virtual_0], vtable.CTagExtractor.0
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x22c], esi
mov dword [ebp - 0x228], esi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x23c], eax
cmp eax, 0xffffffff
je 0x40d874
push esi
push esi
push esi
push 2
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x238], eax
test eax, eax
je 0x40d832
push esi
push esi
push esi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
mov dword [ebp - 0x234], esi
test esi, esi
je 0x40d803
push 0x1c
lea eax, [ebp - 0x260]
mov dword [ebp - 0x248], 0
xorps xmm0, xmm0
push eax
push esi
movups xmmword [ebp - 0x260], xmm0
movq qword [ebp - 0x250], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40d803
mov eax, dword [ebp - 0x254]
lea ecx, [ebp - 0x240]
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x21c], 0
push eax
mov dword [ebp - 0x220], 0
call fcn.004090f0
test eax, eax
je 0x40d7bb
cmp dword [ebp - 0x21c], 0
je 0x40d7bb
mov edx, dword [ebp - 0x220]
mov ecx, edx
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40d750
mov eax, dword [edi + 0x14]
sub ecx, esi
mov esi, dword [edi + 0x10]
sub eax, esi
mov dword [ebp - 0x21c], ecx
cmp ecx, eax
ja 0x40d794
cmp dword [edi + 0x14], 0x10
lea eax, [esi + ecx]
mov dword [edi + 0x10], eax
mov eax, edi
jb 0x40d77b
mov eax, dword [edi]
push ecx
add esi, eax
push edx
push esi
call fcn.00411d20
mov eax, dword [ebp - 0x21c]
add esp, 0xc
mov byte [esi + eax], 0
jmp 0x40d7ab
push ecx
push edx
mov byte [ebp - 0x21c], 0
push dword [ebp - 0x21c]
push ecx
mov ecx, edi
call fcn.004036f0
push 1
push dword [ebp - 0x220]
call fcn.00410b00
add esp, 8
mov esi, dword [ebp - 0x234]
test esi, esi
je 0x40d7ce
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
xor esi, esi
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x220], eax
test eax, eax
je 0x40d7ef
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x220], 0
mov eax, dword [ebp - 0x23c]
mov dword [ebp - 0x21c], eax
cmp eax, 0xffffffff
je 0x40d848
push eax
jmp 0x40d838
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x40d81c
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
xor esi, esi
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x220], 0
push dword [ebp - 0x23c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x21c], 0xffffffff
test esi, esi
je 0x40d853
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x220]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x40d866
push eax
call esi
mov eax, dword [ebp - 0x21c]
cmp eax, 0xffffffff
je 0x40d874
push eax
call esi
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00410abf
mov esp, ebp
pop ebp
ret