Function at 0x6d45f8
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push esi
push edi
add esp, 0xfffffdac
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
mov esi, 0x6ed7a2
lea edi, [esp + 0x54]
mov ecx, 0x40
rep movsd dword es:[edi], dword [esi]
mov esi, 0x6ed8a3
lea edi, [esp + 0x154]
mov ecx, 0x40
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 4]
push eax
call sub.kernel32.dll_lstrlenA_1
mov dword [esp + 0x10], eax
mov edx, dword [esp + 4]
add edx, dword [esp + 0x10]
add edx, 0xfffffffe
mov dword [esp + 0xc], edx
push 0
push 0
push 3
push 0
push 3
push 0x80000000
mov ecx, dword [esp + 0x1c]
push ecx
call sub.kernel32.dll_CreateFileA_1
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], 0xffffffff
jne 0x6d4679
mov eax, 0xffffff37
jmp 0x6d4ae4
push 0
lea edx, [esp + 0x28]
push edx
push 8
lea ecx, [esp + 0x40]
push ecx
mov eax, dword [esp + 0x28]
push eax
call sub.kernel32.dll_ReadFile_1
mov dword [esp + 0x20], eax
cmp dword [esp + 0x20], 0
jne 0x6d46b0
mov edx, dword [esp + 0x18]
push edx
call sub.kernel32.dll_CloseHandle_1
mov eax, 0xffffff34
jmp 0x6d4ae4
push 0
lea edx, [esp + 0x28]
push edx
push 8
lea ecx, [esp + 0x48]
push ecx
mov eax, dword [esp + 0x28]
push eax
call sub.kernel32.dll_ReadFile_1
mov dword [esp + 0x20], eax
cmp dword [esp + 0x20], 0
jne 0x6d46e7
mov edx, dword [esp + 0x18]
push edx
call sub.kernel32.dll_CloseHandle_1
mov eax, 0xffffff34
jmp 0x6d4ae4
mov edx, dword [esp + 0x18]
push edx
call sub.kernel32.dll_CloseHandle_1
push 0x6efa45
push 1
push 1
push 0
call sub.kernel32.dll_CreateSemaphoreA
mov dword [esp + 0x14], eax
push 0xffffffffffffffff
mov ecx, dword [esp + 0x18]
push ecx
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [esp + 8]
push eax
lea ecx, [esp + 0x48]
lea edx, [esp + 0x38]
mov eax, dword [esp + 4]
call fcn.006ced70
mov dword [esp + 0x30], eax
cmp dword [esp + 0x30], 0
je 0x6d476d
mov edx, dword [esp + 8]
push edx
lea ecx, [esp + 0x48]
lea edx, [esp + 0x38]
mov eax, dword [esp + 4]
call fcn.006ced70
mov dword [esp + 0x30], eax
cmp dword [esp + 0x30], 0
je 0x6d476d
mov ecx, dword [esp + 8]
push ecx
lea ecx, [esp + 0x48]
lea edx, [esp + 0x38]
mov eax, dword [esp + 4]
call fcn.006ced70
mov dword [esp + 0x30], eax
push 0
push 1
mov eax, dword [esp + 0x1c]
push eax
call sub.kernel32.dll_ReleaseSemaphore
cmp dword [esp + 0x30], 0
je 0x6d4795
mov edx, dword [esp + 0x14]
push edx
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [esp + 0x30]
jmp 0x6d4ae4
push 0xffffffffffffffff
mov edx, dword [esp + 0x18]
push edx
call sub.kernel32.dll_WaitForSingleObject
mov ecx, dword [esp + 8]
push ecx
lea ecx, [esp + 0x50]
lea edx, [esp + 0x40]
mov eax, dword [esp + 4]
call fcn.006ced70
mov dword [esp + 0x30], eax
cmp dword [esp + 0x30], 0
je 0x6d47fd
mov eax, dword [esp + 8]
push eax
lea ecx, [esp + 0x50]
lea edx, [esp + 0x40]
mov eax, dword [esp + 4]
call fcn.006ced70
mov dword [esp + 0x30], eax
cmp dword [esp + 0x30], 0
je 0x6d47fd
mov edx, dword [esp + 8]
push edx
lea ecx, [esp + 0x50]
lea edx, [esp + 0x40]
mov eax, dword [esp + 4]
call fcn.006ced70
mov dword [esp + 0x30], eax
push 0
push 1
mov ecx, dword [esp + 0x1c]
push ecx
call sub.kernel32.dll_ReleaseSemaphore
mov eax, dword [esp + 0x14]
push eax
call sub.kernel32.dll_CloseHandle_1
cmp dword [esp + 0x30], 0
je 0x6d4825
mov eax, dword [esp + 0x30]
jmp 0x6d4ae4
push 0x6efa4d
mov edx, dword [esp + 0x10]
push edx
call sub.kernel32.dll_lstrcmpiA
test eax, eax
jne 0x6d491a
mov ecx, dword [esp + 4]
push ecx
call sub.kernel32.dll_lstrlenA_1
dec eax
push eax
mov eax, dword [esp + 8]
push eax
lea edx, [esp + 0x5c]
push edx
call sub.kernel32.dll_lstrcpynA_1
push 0x6efa50
lea ecx, [esp + 0x58]
push ecx
call sub.kernel32.dll_lstrcatA
lea eax, [esp + 0x54]
call fcn.006d73d0
push 0
push 0
push 2
push 0
push 3
push 0x40000000
lea edx, [esp + 0x6c]
push edx
call sub.kernel32.dll_CreateFileA_1
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], 0xffffffff
jne 0x6d489d
mov eax, 0xffffff37
jmp 0x6d4ae4
push 0
lea edx, [esp + 0x28]
push edx
push 8
lea ecx, [esp + 0x50]
push ecx
mov eax, dword [esp + 0x28]
push eax
call sub.kernel32.dll_WriteFile_1
mov dword [esp + 0x20], eax
cmp dword [esp + 0x20], 0
jne 0x6d48d4
mov edx, dword [esp + 0x18]
push edx
call sub.kernel32.dll_CloseHandle_1
mov eax, 0xffffff33
jmp 0x6d4ae4
push 0
lea edx, [esp + 0x28]
push edx
push 8
lea ecx, [esp + 0x58]
push ecx
mov eax, dword [esp + 0x28]
push eax
call sub.kernel32.dll_WriteFile_1
mov dword [esp + 0x20], eax
cmp dword [esp + 0x20], 0
jne 0x6d490b
mov edx, dword [esp + 0x18]
push edx
call sub.kernel32.dll_CloseHandle_1
mov eax, 0xffffff33
jmp 0x6d4ae4
mov edx, dword [esp + 0x18]
push edx
call sub.kernel32.dll_CloseHandle_1
jmp 0x6d4ae2
mov ecx, dword [esp + 4]
push ecx
call sub.kernel32.dll_lstrlenA_1
dec eax
push eax
mov eax, dword [esp + 8]
push eax
lea edx, [esp + 0x5c]
push edx
call sub.kernel32.dll_lstrcpynA_1
push 0x6efa57
lea ecx, [esp + 0x58]
push ecx
call sub.kernel32.dll_lstrcatA
lea eax, [esp + 0x54]
call fcn.006d73d0
push 0
push 0
push 2
push 0
push 3
push 0x40000000
lea edx, [esp + 0x6c]
push edx
call sub.kernel32.dll_CreateFileA_1
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], 0xffffffff
jne 0x6d497b
mov eax, 0xffffff37
jmp 0x6d4ae4
push 0
lea edx, [esp + 0x28]
push edx
push 8
lea ecx, [esp + 0x50]
push ecx
mov eax, dword [esp + 0x28]
push eax
call sub.kernel32.dll_WriteFile_1
mov dword [esp + 0x20], eax
cmp dword [esp + 0x20], 0
jne 0x6d49b2
mov edx, dword [esp + 0x18]
push edx
call sub.kernel32.dll_CloseHandle_1
mov eax, 0xffffff33
jmp 0x6d4ae4
push 0
lea edx, [esp + 0x28]
push edx
push 8
lea ecx, [esp + 0x58]
push ecx
mov eax, dword [esp + 0x28]
push eax
call sub.kernel32.dll_WriteFile_1
mov dword [esp + 0x20], eax
cmp dword [esp + 0x20], 0
jne 0x6d49e9
mov edx, dword [esp + 0x18]
push edx
call sub.kernel32.dll_CloseHandle_1
mov eax, 0xffffff33
jmp 0x6d4ae4
push 0
push 0
push 3
push 0
push 3
push 0x80000000
mov edx, dword [esp + 0x1c]
push edx
call sub.kernel32.dll_CreateFileA_1
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x1c], 0xffffffff
jne 0x6d4a21
mov ecx, dword [esp + 0x18]
push ecx
call sub.kernel32.dll_CloseHandle_1
mov eax, 0xffffff37
jmp 0x6d4ae4
push 0
push 0
push 0x10
mov edx, dword [esp + 0x28]
push edx
call sub.kernel32.dll_SetFilePointer_1
mov dword [esp + 0x28], 1
push 0
lea ecx, [esp + 0x28]
push ecx
push 1
lea eax, [esp + 0x38]
push eax
mov edx, dword [esp + 0x2c]
push edx
call sub.kernel32.dll_ReadFile_1
mov dword [esp + 0x20], eax
cmp dword [esp + 0x20], 0
jne 0x6d4a77
mov ecx, dword [esp + 0x18]
push ecx
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [esp + 0x1c]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, 0xffffff35
jmp 0x6d4ae4
cmp dword [esp + 0x24], 0
je 0x6d4ace
push 0
lea edx, [esp + 0x28]
push edx
push 1
lea ecx, [esp + 0x38]
push ecx
mov eax, dword [esp + 0x28]
push eax
call sub.kernel32.dll_WriteFile_1
mov dword [esp + 0x20], eax
cmp dword [esp + 0x20], 0
jne 0x6d4abc
mov edx, dword [esp + 0x18]
push edx
call sub.kernel32.dll_CloseHandle_1
mov ecx, dword [esp + 0x1c]
push ecx
call sub.kernel32.dll_CloseHandle_1
mov eax, 0xffffff33
jmp 0x6d4ae4
inc dword [esp + 0x28]
cmp dword [esp + 0x28], 0x100
jle 0x6d4a39
mov edx, dword [esp + 0x1c]
push edx
call sub.kernel32.dll_CloseHandle_1
mov ecx, dword [esp + 0x18]
push ecx
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
add esp, 0x254
pop edi
pop esi
ret