Function at 0x6d532910
Capabilities:
Read file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0xc
cmp ecx, dword [0x6d535018]
push ebx
push esi
push edi
push ebp
jae 0x6d532d51
mov eax, dword [0x6d535020]
mov ebx, dword [eax + ecx*4]
test ebx, ebx
je 0x6d532d51
mov dword [esp + 0x10], 0
push ebx
call dword [sym.imp.KERNEL32.DLL_InterlockedIncrement]
push 0
lea eax, [ebx + 0x2c]
push 0
mov ecx, dword [ebx + 0x28]
push eax
mov ebp, dword [sym.imp.KERNEL32.DLL_WaitForMultipleObjects]
push ecx
call ebp
cmp dword [ebx + 8], 0
mov esi, eax
jne 0x6d53296f
mov dword [esp + 0x10], 0x1104
jmp 0x6d532d2e
cmp esi, 0x102
jne 0x6d532984
mov dword [esp + 0x10], 0x1104
jmp 0x6d532d2e
cmp esi, 0xffffffff
jne 0x6d5329c2
cmp dword [0x6d537df0], 0xffffffff
je 0x6d5329b5
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [esp + 0x20]
push eax
push ecx
push 0x567
push 0x6d5370c0
push 0x6d537c18
call fcn.6d533090
add esp, 0x14
mov dword [esp + 0x10], 0x1108
jmp 0x6d532d2e
mov eax, dword [ebx + esi*4 + 0x2c]
mov ebp, dword [sym.imp.KERNEL32.DLL_ResetEvent]
push eax
call ebp
xor ecx, ecx
mov cl, byte [ebx + esi + 0x12c]
mov eax, ecx
mov dword [esp + 0x18], ecx
shl eax, 6
mov esi, dword [eax + ebx + 0x1a0]
cmp esi, 0x3e5
lea ebp, [eax + ebx + 0x16c]
jne 0x6d532a18
xor esi, esi
lea eax, [ebp + 0x38]
push esi
lea ecx, [ebp + 0x20]
push eax
mov edx, dword [ebp]
push ecx
push edx
call dword [sym.imp.KERNEL32.DLL_GetOverlappedResult]
test eax, eax
jne 0x6d532a18
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
test esi, esi
je 0x6d532abc
cmp esi, 0x3e3
jne 0x6d532a67
cmp dword [0x6d537df0], 0xffffffff
je 0x6d532a5d
mov ecx, dword [esp + 0x18]
push esi
lea eax, [ecx + ecx*2]
mov ecx, dword [esp + 0x24]
mov edx, dword [eax*4 + 0x6d5350d4]
push edx
push ecx
push 0x57a
push 0x6d5370c0
push 0x6d537bbc
call fcn.6d533090
add esp, 0x18
mov dword [esp + 0x10], 0x1104
jmp 0x6d532abc
cmp dword [0x6d537df0], 0xffffffff
je 0x6d532a9c
mov ecx, dword [esp + 0x18]
push esi
lea eax, [ecx + ecx*2]
mov ecx, dword [esp + 0x24]
mov edx, dword [eax*4 + 0x6d5350d4]
push edx
push ecx
push 0x580
push 0x6d5370c0
push 0x6d537b78
call fcn.6d533090
add esp, 0x18
test esi, esi
jne 0x6d532aaa
mov dword [esp + 0x10], 0
jmp 0x6d532abc
push 0x6d537050
push esi
call section..Upack
mov dword [esp + 0x18], eax
add esp, 8
push 0xffffffffffffffff
mov eax, dword [ebx + 0x14]
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp dword [ebx + 8], 0
jne 0x6d532adb
mov dword [esp + 0x10], 0x1104
jmp 0x6d532d22
cmp dword [ebx + 0x18], 0xffff
mov ecx, dword [ebx + 0x24]
mov dword [esp + 0x14], ecx
jne 0x6d532c23
mov ecx, dword [ebx + 0x1c]
cmp ecx, 0xffff
jne 0x6d532b2c
cmp dword [0x6d537df0], 0xffffffff
je 0x6d532b1f
mov ecx, dword [esp + 0x20]
push ecx
push 0x59b
push 0x6d5370c0
push 0x6d537b3c
call fcn.6d533090
add esp, 0x10
mov dword [esp + 0x10], 0x1108
jmp 0x6d532c16
mov eax, dword [ebx + 0x20]
cmp eax, ecx
jne 0x6d532b96
shl eax, 3
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x6d532b6f
push 0x1010
push 0x6d537498
push 0x6d537b10
push 0
call dword [sym.imp.USER32.DLL_MessageBoxA]
mov dword [esp + 0x10], 0x1108
mov ecx, dword [ebx + 0x24]
mov dword [esp + 0x14], ecx
jmp 0x6d532b96
mov ecx, dword [ebx + 0x20]
mov edi, dword [esp + 0x14]
shl ecx, 2
mov esi, dword [ebx + 0x24]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0x24]
push eax
call dword [sym.imp.KERNEL32.DLL_LocalFree]
mov ecx, dword [esp + 0x14]
mov dword [ebx + 0x24], ecx
shl dword [ebx + 0x20], 1
mov eax, dword [ebx + 0x1c]
cmp dword [ebx + 0x20], eax
jle 0x6d532c16
cmp dword [0x6d537df0], 0xffffffff
je 0x6d532bc5
inc eax
mov ecx, dword [esp + 0x20]
push eax
push ecx
push 0x5b5
push 0x6d5370c0
push 0x6d537acc
call fcn.6d533090
add esp, 0x14
mov eax, dword [ebx + 0x10]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
test eax, eax
jne 0x6d532bf6
push 0x1010
push 0x6d537498
push 0x6d537aa0
push 0
call dword [sym.imp.USER32.DLL_MessageBoxA]
mov dword [esp + 0x10], 0x1108
jmp 0x6d532c16
mov dword [eax + 4], 0
mov ecx, dword [ebx + 0x18]
mov word [eax], cx
mov ecx, dword [esp + 0x14]
mov edx, dword [ebx + 0x1c]
mov dword [ebx + 0x18], edx
mov edx, dword [ebx + 0x1c]
mov dword [ecx + edx*4], eax
inc dword [ebx + 0x1c]
cmp dword [ebx + 0x18], 0xffff
je 0x6d532cb2
mov ax, word [ebp + 0x3c]
mov ecx, dword [esp + 0x14]
mov esi, eax
and esi, 0xffff
mov edx, dword [ecx + esi*4]
mov ecx, dword [esp + 0x24]
lea edi, [edx + 8]
mov dword [ecx], edi
mov ecx, dword [esp + 0x18]
mov di, word [esp + 0x20]
mov word [edx + 0xa], di
lea edi, [ecx + ecx*2]
mov cl, byte [edi*4 + 0x6d5350d0]
xor edi, edi
add byte [edx + 0x10], cl
mov di, word [edx + 0xc]
cmp edi, 0x8286
je 0x6d532c82
mov eax, dword [ebx + 0x18]
mov ecx, dword [esp + 0x14]
mov dword [ebp + 0x3c], eax
mov eax, dword [ebx + 0x18]
mov edi, dword [ecx + eax*4]
mov ax, word [edi]
mov word [edx], ax
mov dword [ebx + 0x18], esi
jmp 0x6d532cb2
mov ecx, dword [edx + 0x10]
mov dword [edx + 4], ecx
mov si, word [edx + 0x1a]
mov word [edx + 2], si
mov esi, dword [esp + 0x14]
mov word [edx + 0x1a], ax
lea eax, [edx + 0x1e]
mov dword [edx + 0x14], eax
mov ecx, dword [ebx + 0x18]
mov dword [ebp + 0x3c], ecx
xor ecx, ecx
mov edx, dword [ebx + 0x18]
mov eax, dword [esi + edx*4]
mov cx, word [eax]
mov dword [ebx + 0x18], ecx
cmp dword [ebx + 8], 0
jne 0x6d532cc2
mov dword [esp + 0x10], 0x1104
jmp 0x6d532d22
lea edx, [ebp + 0x38]
mov ecx, dword [esp + 0x14]
mov dword [edx], 0
mov eax, dword [ebp + 0x3c]
mov esi, dword [ecx + eax*4]
lea eax, [ebp + 0x20]
mov word [esi + 8], 0
mov dword [ebp + 0x34], 0
push eax
push edx
mov eax, dword [ebx + 0x10]
mov edx, dword [ebp + 0x3c]
sub eax, 8
push eax
mov eax, dword [ecx + edx*4]
add eax, 8
mov ecx, dword [ebp]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x6d532d0f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp + 0x34], eax
cmp dword [ebp + 0x34], 0x3e5
je 0x6d532d22
mov eax, dword [ebp + 0x30]
push eax
call dword [sym.imp.KERNEL32.DLL_SetEvent]
mov eax, dword [ebx + 0x14]
mov ebp, dword [sym.imp.KERNEL32.DLL_ReleaseMutex]
push eax
call ebp
push ebx
call dword [sym.imp.KERNEL32.DLL_InterlockedDecrement]
test eax, eax
jge 0x6d532d43
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.KERNEL32.DLL_SetEvent]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8
cmp dword [0x6d537df0], 0xffffffff
je 0x6d532d76
mov ecx, dword [esp + 0x20]
push ecx
push 0x54e
push 0x6d5370c0
push 0x6d537c5c
call fcn.6d533090
add esp, 0x10
mov eax, 0x1101
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8