Function at 0x40efc0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x527318
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x568fd0]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x18]
xor ebx, ebx
push ebx
push ebx
push 0x859
push eax
call ecx
add esp, 0x10
mov dword [esp + 0x10], eax
cmp eax, dword [ebp + 0xc]
je 0x40f252
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x18]
push ebx
push ebx
push 0x7d6
push edx
call eax
mov edi, eax
add esp, 0x10
cmp edi, ebx
jle 0x40f252
or eax, 0xffffffff
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x68], ebx
xor esi, esi
xor ecx, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], ecx
mov eax, edi
cdq
cmp edx, ebx
mov byte [esp + 0x68], 1
jl 0x40f0ba
jg 0x40f073
cmp eax, ebx
jbe 0x40f0ba
push ebx
push eax
push edx
push 4
push ebx
push 0xffffffffffffffff
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], edx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esp + 0x30], eax
cmp eax, ebx
je 0x40f1b9
push ebx
push ebx
push ebx
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
mov dword [esp + 0x34], eax
setne al
cmp al, bl
je 0x40f1b9
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
lea eax, [edi + edi]
cdq
cmp edx, ecx
jl 0x40f0d4
jg 0x40f0c8
cmp eax, esi
jbe 0x40f0d4
mov esi, eax
mov ecx, edx
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], ecx
mov edx, esi
or edx, ecx
je 0x40f114
mov eax, dword [esp + 0x14]
push ebx
push esi
push ecx
push 4
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esp + 0x18], eax
cmp eax, ebx
je 0x40f1b9
push ebx
push ebx
push ebx
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
mov dword [esp + 0x1c], eax
setne al
cmp al, bl
je 0x40f1b9
mov eax, dword [esp + 0x34]
mov ecx, dword [ebp + 8]
push edi
xor edx, edx
call fcn.0040e870
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x10]
push edi
push ecx
push edi
push edx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
cmp edi, ebx
jle 0x40f1b9
lea esi, [esp + 0x2c]
call section..text
xor ecx, ecx
mov dword [esp + 0x44], 0xffffffff
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
lea eax, [edi + edi*2]
cdq
cmp edx, ebx
mov byte [esp + 0x68], 2
jl 0x40f1e2
jg 0x40f177
cmp eax, ebx
jbe 0x40f1e2
push ebx
push eax
push edx
push 4
push ebx
push 0xffffffffffffffff
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], edx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esp + 0x48], eax
cmp eax, ebx
je 0x40f1b0
push ebx
push ebx
push ebx
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, eax
cmp ecx, ebx
setne al
mov dword [esp + 0x4c], ecx
cmp al, bl
jne 0x40f1e2
lea esi, [esp + 0x44]
call section..text
lea esi, [esp + 0x14]
call section..text
lea esi, [esp + 0x2c]
call section..text
xor al, al
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x1c]
push ebx
push ebx
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push edi
push eax
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
cmp edi, ebx
jle 0x40f1b0
lea esi, [esp + 0x14]
call section..text
mov esi, dword [ebp + 8]
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x18]
push ebx
push ebx
push 0x7d4
push edx
call eax
mov ecx, dword [ebp + 0xc]
add esp, 0x10
mov eax, esi
call fcn.0040e420
mov ecx, dword [esp + 0x4c]
mov eax, edi
mov edx, esi
call fcn.0040e850
lea esi, [esp + 0x44]
call section..text
lea esi, [esp + 0x14]
call section..text
lea esi, [esp + 0x2c]
call section..text
mov al, 1
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8