Function at 0x3660db45
Capabilities:
Read file via mapping

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x15c
mov eax, dword [0x3663a11c]
push ebx
push edi
xor ebx, ebx
push ebx
mov dword [ebp + 0x6c], eax
push 0x80
xor eax, eax
push 3
lea edi, [ebp + 0x64]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push ebx
push 1
xor eax, eax
lea edi, [ebp + 0x5c]
stosd dword es:[edi], eax
push 0x80000000
push dword [ebp + 0x78]
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x58], ebx
stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x48], eax
je 0x3660de32
push ebx
push ebx
push ebx
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, ebx
mov dword [ebp - 0x6c], eax
je 0x3660de29
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
cmp edi, ebx
je 0x3660de20
push esi
lea eax, [ebp + 0x78]
push eax
lea eax, [ebp - 0x64]
push eax
mov esi, edi
or edi, 1
push 0x36601a44
push edi
mov dword [ebp - 0x5c], edi
call fcn.3660da65
test eax, eax
je 0x3660de11
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x54]
push eax
push 0x36601a3c
push edi
call fcn.3660da65
test eax, eax
je 0x3660de11
mov ecx, dword [ebp + 0x78]
cmp ecx, 8
jb 0x3660de11
mov edx, dword [ebp - 0x64]
xor eax, eax
cmp dword [edx], 0x100
lea edi, [ebp + 0x4c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [edx + 4]
mov dword [ebp - 0x60], eax
jne 0x3660de11
cmp eax, dword [ebp + 0x7c]
ja 0x3660de11
add ecx, 0xfffffff8
cmp ecx, 8
jne 0x3660de11
xor eax, eax
push 0x24
pop ecx
lea edi, [ebp - 0x44]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x60]
lea ecx, [eax + esi + 4]
mov eax, dword [ebp - 0x54]
cmp eax, edx
jbe 0x3660dc81
sub esi, eax
mov ebx, edx
sub ebx, ecx
mov ecx, dword [ebp + 0x78]
mov edi, eax
mov eax, dword [ebp - 0x50]
sub edi, edx
sub esi, eax
sub edi, ecx
add esi, dword [ebp + 0x7c]
mov dword [ebp + 0x7c], ecx
mov dword [ebp - 0x54], esi
lea esi, [ebp + 0x4c]
lea ecx, [ebp - 0x44]
jmp 0x3660dca4
mov ebx, eax
mov edi, edx
sub edi, eax
mov eax, dword [ebp + 0x78]
sub ebx, ecx
mov ecx, dword [ebp - 0x50]
sub esi, edx
sub esi, eax
sub edi, ecx
add esi, dword [ebp + 0x7c]
mov dword [ebp + 0x7c], ecx
mov dword [ebp - 0x54], esi
lea esi, [ebp - 0x44]
lea ecx, [ebp + 0x4c]
mov dword [ebp + 0x78], eax
push 0x3663a040
lea eax, [ebp - 0xec]
push eax
mov dword [ebp - 0x50], ecx
call fcn.3662c4c0
push 0
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp - 0xec]
push eax
push dword [ebp - 0x60]
push dword [ebp - 0x48]
call fcn.3660daaf
test eax, eax
je 0x3660de0f
push 0
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp + 0x5c]
push eax
push 4
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0xec]
push eax
call fcn.3660d9c1
push 1
push 0
push 4
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
je 0x3660de0f
push 0
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp - 0xec]
push eax
push ebx
push dword [ebp - 0x48]
call fcn.3660daaf
test eax, eax
je 0x3660de0f
push 0
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp + 0x5c]
push eax
push dword [ebp + 0x7c]
lea eax, [ebp - 0xec]
push esi
push eax
call fcn.3660d9c1
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
push 0
push dword [ebp + 0x7c]
push dword [ebp - 0x48]
call esi
test eax, eax
je 0x3660de0f
push 0
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp - 0xec]
push eax
push edi
push dword [ebp - 0x48]
call fcn.3660daaf
test eax, eax
je 0x3660de0f
push 0
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp + 0x5c]
push eax
push dword [ebp + 0x78]
lea eax, [ebp - 0xec]
push dword [ebp - 0x50]
push eax
call fcn.3660d9c1
push 1
push 0
push dword [ebp + 0x78]
push dword [ebp - 0x48]
call esi
test eax, eax
je 0x3660de0f
push 1
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp - 0xec]
push eax
push dword [ebp - 0x54]
push dword [ebp - 0x48]
call fcn.3660daaf
test eax, eax
je 0x3660de0f
mov edi, dword [ebp - 0x64]
push 8
pop ecx
add edi, ecx
lea esi, [ebp + 0x64]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x3660de04
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x3660de0f
mov dword [ebp - 0x58], 1
xor ebx, ebx
cmp dword [ebp - 0x5c], ebx
pop esi
je 0x3660de20
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x6c]
mov eax, dword [ebp - 0x58]
pop edi
pop ebx
call fcn.3662acac
add ebp, 0x70
leave
ret 8