Function at 0x6d1330
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffcac
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov word [ebp - 0xe], 0x10b
mov esi, 0x6ec325
lea edi, [ebp - 0x354]
mov ecx, 0x82
rep movsd dword es:[edi], dword [esi]
mov byte [ebp - 0x14c], 0x10
cmp dword [0x6f5838], 0
je 0x6d1463
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_lstrlenA_1
inc eax
push eax
mov edx, dword [ebp - 4]
push edx
lea ecx, [ebp - 0x14b]
push ecx
call fcn.006cb33c
add esp, 0xc
push 2
lea eax, [ebp - 8]
push eax
lea edx, [ebp - 0x47]
push edx
call fcn.006cb33c
add esp, 0xc
push 1
mov ecx, dword [ebp - 0xc]
push ecx
lea eax, [ebp - 0x45]
push eax
call fcn.006cb33c
add esp, 0xc
push 1
mov edx, dword [ebp + 0x10]
push edx
lea ecx, [ebp - 0x44]
push ecx
call fcn.006cb33c
add esp, 0xc
push 1
mov eax, dword [ebp + 0xc]
push eax
lea edx, [ebp - 0x43]
push edx
call fcn.006cb33c
add esp, 0xc
push 1
mov ecx, dword [ebp + 8]
push ecx
lea eax, [ebp - 0x42]
push eax
call fcn.006cb33c
add esp, 0xc
lea ecx, [ebp - 0x18]
lea eax, [ebp - 0x14c]
push 6
mov dx, word [ebp - 0xe]
call fcn.006d780c
mov word [ebp - 0x10], ax
push 2
lea ecx, [ebp - 0x18]
push ecx
lea eax, [ebp - 0x10]
push eax
call fcn.006cb33c
add esp, 0xc
lea edx, [ebp - 0x16]
push 1
push edx
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.006cb33c
add esp, 0xc
lea eax, [ebp - 0x15]
push 1
push eax
mov edx, dword [ebp + 0x10]
push edx
call fcn.006cb33c
add esp, 0xc
lea ecx, [ebp - 0x14]
push 1
push ecx
mov eax, dword [ebp + 0xc]
push eax
call fcn.006cb33c
add esp, 0xc
lea edx, [ebp - 0x13]
push 1
push edx
mov ecx, dword [ebp + 8]
push ecx
call fcn.006cb33c
movsx eax, word [ebp - 0x10]
add esp, 0xc
jmp 0x6d1685
call sub.kernel32.dll_GetProcessHeap
mov dword [ebp - 0x1c], eax
push 0x10
push 0
mov edx, dword [ebp - 0x1c]
push edx
call sub.kernel32.dll_HeapAlloc
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x354]
mov edx, dword [ebp - 4]
call fcn.006d6d40
push 0
push 0
push 3
push 0
push 3
push 0x80000000
lea ecx, [ebp - 0x354]
push ecx
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
jne 0x6d14b7
mov eax, 0xffffff37
jmp 0x6d1685
push 0
push 0
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [ebp - 0x20]
push ecx
call sub.kernel32.dll_SetFilePointer_1
push 0x6efa45
push 1
push 1
push 0
call sub.kernel32.dll_CreateSemaphoreA
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x30], eax
lea edx, [ebp - 0x38]
push 0
push edx
lea ecx, [ebp - 0x40]
push 8
push ecx
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_ReadFile_1
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x6d1529
mov edx, dword [ebp - 0x20]
push edx
call sub.kernel32.dll_CloseHandle_1
mov ecx, dword [ebp - 0x28]
push ecx
push 0
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_HeapFree
mov edx, dword [ebp - 0x24]
push edx
call sub.kernel32.dll_CloseHandle_1
mov eax, 0xffffff34
jmp 0x6d1685
push 0xffffffffffffffff
mov edx, dword [ebp - 0x24]
push edx
call sub.kernel32.dll_WaitForSingleObject
push 0x6efa31
lea edx, [ebp - 0x40]
mov ecx, dword [ebp - 0x30]
mov eax, 0x6f5608
shl ecx, 3
add ecx, dword [ebp - 0x28]
call fcn.006ced70
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x6d159a
push 0x6efa31
lea edx, [ebp - 0x40]
mov ecx, dword [ebp - 0x30]
mov eax, 0x6f5608
shl ecx, 3
add ecx, dword [ebp - 0x28]
call fcn.006ced70
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x6d159a
push 0x6efa31
lea edx, [ebp - 0x40]
mov ecx, dword [ebp - 0x30]
mov eax, 0x6f5608
shl ecx, 3
add ecx, dword [ebp - 0x28]
call fcn.006ced70
mov dword [ebp - 0x2c], eax
push 0
push 1
mov ecx, dword [ebp - 0x24]
push ecx
call sub.kernel32.dll_ReleaseSemaphore
cmp dword [ebp - 0x2c], 0
je 0x6d15d6
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_CloseHandle_1
mov edx, dword [ebp - 0x28]
push edx
push 0
mov ecx, dword [ebp - 0x1c]
push ecx
call sub.kernel32.dll_HeapFree
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x2c]
jmp 0x6d1685
inc dword [ebp - 0x30]
cmp dword [ebp - 0x30], 2
jl 0x6d14e0
mov edx, dword [ebp - 0x20]
push edx
call sub.kernel32.dll_CloseHandle_1
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x24]
push ecx
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [ebp + 0xc]
push eax
mov edx, dword [ebp + 8]
push edx
push 0x6efa31
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x28]
call fcn.006cef04
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x6d165d
mov ecx, dword [ebp + 0xc]
push ecx
mov eax, dword [ebp + 8]
push eax
push 0x6efa31
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x28]
call fcn.006cef04
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x6d165d
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp + 8]
push ecx
push 0x6efa31
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x28]
call fcn.006cef04
mov dword [ebp - 0x2c], eax
push 0
push 1
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_ReleaseSemaphore
mov edx, dword [ebp - 0x24]
push edx
call sub.kernel32.dll_CloseHandle_1
mov ecx, dword [ebp - 0x28]
push ecx
push 0
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_HeapFree
mov eax, dword [ebp - 0x2c]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc