Function at 0x5d53b0
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, 0x6aca22
lea edi, [esp + 0x54]
mov ecx, 0x40
rep movsd dword es:[edi], dword [esi]
mov esi, 0x6acb23
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 0x5d5431
mov eax, 0xffffff37
jmp 0x5d589c
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 0x5d5468
mov edx, dword [esp + 0x18]
push edx
call sub.kernel32.dll_CloseHandle_1
mov eax, 0xffffff34
jmp 0x5d589c
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 0x5d549f
mov edx, dword [esp + 0x18]
push edx
call sub.kernel32.dll_CloseHandle_1
mov eax, 0xffffff34
jmp 0x5d589c
mov edx, dword [esp + 0x18]
push edx
call sub.kernel32.dll_CloseHandle_1
push 0x6aecca
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.005cfb30
mov dword [esp + 0x30], eax
cmp dword [esp + 0x30], 0
je 0x5d5525
mov edx, dword [esp + 8]
push edx
lea ecx, [esp + 0x48]
lea edx, [esp + 0x38]
mov eax, dword [esp + 4]
call fcn.005cfb30
mov dword [esp + 0x30], eax
cmp dword [esp + 0x30], 0
je 0x5d5525
mov ecx, dword [esp + 8]
push ecx
lea ecx, [esp + 0x48]
lea edx, [esp + 0x38]
mov eax, dword [esp + 4]
call fcn.005cfb30
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 0x5d554d
mov edx, dword [esp + 0x14]
push edx
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [esp + 0x30]
jmp 0x5d589c
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.005cfb30
mov dword [esp + 0x30], eax
cmp dword [esp + 0x30], 0
je 0x5d55b5
mov eax, dword [esp + 8]
push eax
lea ecx, [esp + 0x50]
lea edx, [esp + 0x40]
mov eax, dword [esp + 4]
call fcn.005cfb30
mov dword [esp + 0x30], eax
cmp dword [esp + 0x30], 0
je 0x5d55b5
mov edx, dword [esp + 8]
push edx
lea ecx, [esp + 0x50]
lea edx, [esp + 0x40]
mov eax, dword [esp + 4]
call fcn.005cfb30
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 0x5d55dd
mov eax, dword [esp + 0x30]
jmp 0x5d589c
push 0x6aecd2
mov edx, dword [esp + 0x10]
push edx
call sub.kernel32.dll_lstrcmpiA
test eax, eax
jne 0x5d56d2
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 0x6aecd5
lea ecx, [esp + 0x58]
push ecx
call sub.kernel32.dll_lstrcatA
lea eax, [esp + 0x54]
call fcn.005d8188
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 0x5d5655
mov eax, 0xffffff37
jmp 0x5d589c
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 0x5d568c
mov edx, dword [esp + 0x18]
push edx
call sub.kernel32.dll_CloseHandle_1
mov eax, 0xffffff33
jmp 0x5d589c
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 0x5d56c3
mov edx, dword [esp + 0x18]
push edx
call sub.kernel32.dll_CloseHandle_1
mov eax, 0xffffff33
jmp 0x5d589c
mov edx, dword [esp + 0x18]
push edx
call sub.kernel32.dll_CloseHandle_1
jmp 0x5d589a
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 0x6aecdc
lea ecx, [esp + 0x58]
push ecx
call sub.kernel32.dll_lstrcatA
lea eax, [esp + 0x54]
call fcn.005d8188
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 0x5d5733
mov eax, 0xffffff37
jmp 0x5d589c
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 0x5d576a
mov edx, dword [esp + 0x18]
push edx
call sub.kernel32.dll_CloseHandle_1
mov eax, 0xffffff33
jmp 0x5d589c
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 0x5d57a1
mov edx, dword [esp + 0x18]
push edx
call sub.kernel32.dll_CloseHandle_1
mov eax, 0xffffff33
jmp 0x5d589c
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 0x5d57d9
mov ecx, dword [esp + 0x18]
push ecx
call sub.kernel32.dll_CloseHandle_1
mov eax, 0xffffff37
jmp 0x5d589c
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 0x5d582f
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 0x5d589c
cmp dword [esp + 0x24], 0
je 0x5d5886
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 0x5d5874
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 0x5d589c
inc dword [esp + 0x28]
cmp dword [esp + 0x28], 0x100
jle 0x5d57f1
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