Function at 0x40a200
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x462ca2
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x483094]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x14], 0
mov esi, dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x30], 0
mov byte [ebx + 0x34], 0
je 0x40a259
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebx + 0x14]
call edi
mov dword [ebx + 0x14], 0
mov eax, dword [ebx + 0x10]
cmp eax, 0xffffffff
je 0x40a26b
push eax
call edi
mov dword [ebx + 0x10], 0xffffffff
test esi, esi
je 0x40a294
push 0
push 0x80
push 4
push 0
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx + 0x10], eax
cmp eax, 0xffffffff
je 0x40a442
push 0x124
call fcn.00428c19
mov edi, eax
add esp, 4
mov dword [ebp - 0x28], edi
mov dword [ebp - 4], 0
lea esi, [edi + 0xc]
push 0
push dword [ebp + 0xc]
mov ecx, esi
mov dword [edi + 4], 1
push 0
mov dword [edi + 8], 1
mov dword [edi], vtable.std::_Ref_count_obj_class_base::log_crypt::LogCrypt_.0
call fcn.00407080
mov dword [ebx + 0x38], esi
mov esi, dword [ebx + 0x3c]
mov dword [ebx + 0x3c], edi
mov dword [ebp - 4], 1
test esi, esi
je 0x40a307
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x40a307
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x40a307
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
push 0
push 0x3000a2
push 0
push 4
push 0
mov dword [ebp - 4], 0xffffffff
push dword [ebx + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push 0x3000a2
push 0
push 0
push 7
push eax
mov dword [ebx + 0x14], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebx + 4], eax
test eax, eax
je 0x40a442
add eax, 0x96
mov dword [ebp - 0x14], 0
mov dword [ebx + 8], eax
lea ecx, [ebp - 0x24]
add eax, 0x300000
mov dword [ebp - 0x10], 0xf
mov dword [ebx + 0xc], eax
mov eax, dword [ebx + 0x38]
push 0x96
add eax, 0x20
mov byte [ebp - 0x24], 0
push eax
call fcn.00403b50
cmp dword [ebp - 0x10], 0x10
lea eax, [ebp - 0x24]
mov ecx, dword [ebx + 4]
mov edx, 0x96
cmovae eax, dword [ebp - 0x24]
push 0x96
push eax
call fcn.00405440
mov edx, dword [ebp - 0x10]
add esp, 8
cmp edx, 0x10
jb 0x40a3cf
mov ecx, dword [ebp - 0x24]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a3c5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a459
push edx
push ecx
call fcn.00428ee3
add esp, 8
mov eax, dword [ebx + 0x38]
lea ecx, [ebp - 0x24]
push 0xc
add eax, 0xb6
mov dword [ebp - 0x14], 0
push eax
mov dword [ebp - 0x10], 0xf
mov byte [ebp - 0x24], 0
call fcn.00403b50
cmp dword [ebp - 0x10], 0x10
lea eax, [ebp - 0x24]
mov ecx, dword [ebx + 0xc]
mov edx, 0xc
cmovae eax, dword [ebp - 0x24]
push 0xc
push eax
call fcn.00405440
mov edx, dword [ebp - 0x10]
add esp, 8
cmp edx, 0x10
jb 0x40a442
mov ecx, dword [ebp - 0x24]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a438
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a45e
push edx
push ecx
call fcn.00428ee3
add esp, 8
mov eax, dword [ebx + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.004465a2
call fcn.004465a2
int3