Function at 0x40b8a0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46a4f3
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x492014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x1c], 0
cmp byte [ebx + 0x18], 0
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], esi
je 0x40b8f9
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, eax
mov dword [ebx + 0x14], 6
call fcn.00403b30
mov eax, dword [eax + 0x10]
test eax, eax
je 0x40bc1b
mov ecx, esi
call fcn.00403b30
mov eax, dword [eax + 0x10]
test eax, eax
je 0x40ba26
mov dword [ebp - 4], 0
push 0x2c
call fcn.004345e2
mov edi, eax
mov dword [ebp - 0x28], edi
mov byte [ebp - 4], 1
lea esi, [edi + 0xc]
push esi
push 0x20
mov dword [edi + 4], 1
mov dword [edi + 8], 1
mov dword [edi], vtable.std::_Ref_count_obj_class_RC::RCEvent_.0
call fcn.004020a0
add esp, 0xc
mov dword [ebp - 0x2c], eax
lea ecx, [eax + 8]
mov dword [eax], 0
mov byte [eax + 4], 0
call fcn.00403a20
mov byte [ebp - 4], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x18]
movlpd qword [ebp - 0x18], xmm0
push ecx
mov dword [ebp - 0x18], 0
lea ecx, [ebx + 0xc]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], edi
call fcn.0040b390
mov eax, 1
mov dword [ebp - 0x1c], eax
and eax, 0xfffffffe
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x40b9e3
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x40b9e3
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x40b9e3
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp - 0x20]
call fcn.004038f0
push eax
lea ecx, [ebp - 0x44]
call fcn.004039d0
mov dword [ebp - 4], 3
sub esp, 8
mov ecx, dword [ebx + 0xc]
lea eax, [ebp - 0x44]
push eax
call fcn.00419260
mov byte [ebp - 0xd], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00403930
cmp byte [ebp - 0xd], 0
je 0x40bb94
imul esi, dword [ebx + 0x14], 0x80c
mov ecx, dword [ebp - 0x24]
add esi, 0x814
call fcn.004038f0
push esi
sub esp, 8
push eax
push ecx
mov ecx, ebx
call fcn.0041dd10
mov byte [ebp - 0xd], al
test al, al
je 0x40bb94
imul esi, dword [ebx + 0x14], 0x80c
mov eax, dword [ebx]
mov byte [ebp - 0xd], 0
add esi, 0x814
cmp dword [ebx + 8], 0xb7
jne 0x40bafd
test eax, eax
je 0x40bb90
mov ecx, dword [ebx + 4]
mov edi, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test ecx, ecx
je 0x40ba94
push ecx
call edi
mov eax, dword [ebx]
mov dword [ebx + 4], 0
push esi
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebx + 4], eax
test eax, eax
je 0x40bb90
mov ecx, eax
mov dword [ebx + 0x1c], ecx
test ecx, ecx
je 0x40baed
cmp dword [ecx], 0x35343332
jne 0x40badf
cmp dword [ecx + 4], 1
jne 0x40badf
cmp dword [ecx + 8], 0
jne 0x40badf
mov eax, dword [ebx + 0x14]
lea eax, [eax*8 + 0x10]
cmp dword [ecx + 0xc], eax
jne 0x40badf
mov byte [ebp - 0xd], 1
jmp 0x40baed
test ecx, ecx
je 0x40baed
push ecx
call edi
mov dword [ebx + 4], 0
mov al, byte [ebp - 0xd]
test al, al
jne 0x40bc04
jmp 0x40bb94
test eax, eax
je 0x40bb90
mov ecx, dword [ebx + 4]
mov edi, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test ecx, ecx
je 0x40bb1e
push ecx
call edi
mov eax, dword [ebx]
mov dword [ebx + 4], 0
push esi
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebx + 4], eax
test eax, eax
je 0x40bb90
mov dword [ebx + 0x1c], eax
xor edi, edi
mov dword [eax], 0x35343332
mov eax, dword [ebx + 0x1c]
mov dword [eax + 4], 1
mov eax, dword [ebx + 0x1c]
mov dword [eax + 8], 0
mov eax, dword [ebx + 0x14]
lea ecx, [eax*8 + 0x10]
mov eax, dword [ebx + 0x1c]
mov dword [eax + 0xc], ecx
cmp dword [ebx + 0x14], edi
jbe 0x40bb87
mov esi, 0x14
nop dword [eax]
mov eax, dword [ebx + 0x1c]
push 0
add eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
inc edi
add esi, 4
cmp edi, dword [ebx + 0x14]
jb 0x40bb70
mov byte [ebp - 0xd], 1
jmp 0x40baed
mov byte [ebp - 0xd], 0
cmp dword [ebx], 0
je 0x40bba0
mov ecx, ebx
call fcn.0041de70
mov ecx, dword [ebx + 0xc]
test ecx, ecx
je 0x40bc01
cmp dword [ecx], 0
je 0x40bbb1
call fcn.004191b0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 4
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebx + 0xc]
call fcn.0040b390
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x40bc01
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x40bc01
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x40bc01
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov al, byte [ebp - 0xd]
mov byte [ebx + 0x18], al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc