Function at 0x3407a27f
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x3413f471
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x5c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
cmp dword [ebp + 8], 0
je 0x3407a473
cmp dword [ebp + 0xc], 0
jbe 0x3407a473
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x58]
call fcn.340df380
mov dword [ebp - 4], 0
push 1
lea eax, [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0x68]
call fcn.34078e29
test eax, eax
jne 0x3407a309
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.340df520
jmp 0x3407a4a8
push 0xffffffffffffffff
lea ecx, [ebp - 0x58]
call fcn.340dfcb0
push 0x2e4
push 0x34188c18
call fcn.3407bcd0
add esp, 8
mov byte [ebp - 4], 1
push 0
lea ecx, [ebp - 0x58]
call fcn.340dfd00
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x64], ecx
cmp dword [ebp - 0x64], 0
je 0x3407a34e
mov edx, dword [ebp - 0x64]
mov eax, dword [edx + 8]
and eax, 2
mov dword [ebp - 0x28], eax
jmp 0x3407a368
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.340dfce0
mov dword [ebp - 0x60], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x5c], eax
push 0x2f5
push 0x34188c38
mov ecx, dword [ebp - 0x5c]
push ecx
mov edx, dword [ebp - 0x60]
push edx
call fcn.3407bd79
add esp, 0x10
lea ecx, [ebp - 0x58]
call fcn.340dfa80
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.340df520
mov eax, dword [ebp - 0x28]
push eax
lea ecx, [ebp - 0x24]
push ecx
mov ecx, dword [ebp - 0x68]
call fcn.3407a04d
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x24]
call fcn.340020c0
push eax
mov edx, dword [ebp + 0xc]
push edx
push 0
push 4
call fcn.340bb110
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x3407a407
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.340a7330
jmp 0x3407a4a8
mov dword [ebp - 0x20], 6
mov eax, dword [ebp + 0xc]
push eax
push 0
push 0
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x3407a43e
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.340a7330
jmp 0x3407a4a8
mov eax, dword [ebp + 0xc]
push eax
push 0
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.340bd3e0
add esp, 0xc
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.340be130
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.340a7330
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x68]
call fcn.3407a0fb
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x3407a49e
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
xor edx, edx
test edx, edx
jne 0x3407a2b9
cmp dword [ebp - 0x14], 0
je 0x3407a4bf
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp - 0x14], 0
cmp dword [ebp - 0x18], 0
je 0x3407a4d6
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8