Function at 0x48eb4c
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, 0x4ce886
lea edi, [esp + 0x54]
mov ecx, 0x40
rep movsd dword es:[edi], dword [esi]
mov esi, 0x4ce987
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
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], 0xffffffff
jne 0x48ebcd
mov eax, 0xffffff37
jmp 0x48f038
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
mov dword [esp + 0x20], eax
cmp dword [esp + 0x20], 0
jne 0x48ec04
mov edx, dword [esp + 0x18]
push edx
call sub.kernel32.dll_CloseHandle
mov eax, 0xffffff34
jmp 0x48f038
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
mov dword [esp + 0x20], eax
cmp dword [esp + 0x20], 0
jne 0x48ec3b
mov edx, dword [esp + 0x18]
push edx
call sub.kernel32.dll_CloseHandle
mov eax, 0xffffff34
jmp 0x48f038
mov edx, dword [esp + 0x18]
push edx
call sub.kernel32.dll_CloseHandle
push 0x4d0b2e
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.00488774
mov dword [esp + 0x30], eax
cmp dword [esp + 0x30], 0
je 0x48ecc1
mov edx, dword [esp + 8]
push edx
lea ecx, [esp + 0x48]
lea edx, [esp + 0x38]
mov eax, dword [esp + 4]
call fcn.00488774
mov dword [esp + 0x30], eax
cmp dword [esp + 0x30], 0
je 0x48ecc1
mov ecx, dword [esp + 8]
push ecx
lea ecx, [esp + 0x48]
lea edx, [esp + 0x38]
mov eax, dword [esp + 4]
call fcn.00488774
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 0x48ece9
mov edx, dword [esp + 0x14]
push edx
call sub.kernel32.dll_CloseHandle
mov eax, dword [esp + 0x30]
jmp 0x48f038
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.00488774
mov dword [esp + 0x30], eax
cmp dword [esp + 0x30], 0
je 0x48ed51
mov eax, dword [esp + 8]
push eax
lea ecx, [esp + 0x50]
lea edx, [esp + 0x40]
mov eax, dword [esp + 4]
call fcn.00488774
mov dword [esp + 0x30], eax
cmp dword [esp + 0x30], 0
je 0x48ed51
mov edx, dword [esp + 8]
push edx
lea ecx, [esp + 0x50]
lea edx, [esp + 0x40]
mov eax, dword [esp + 4]
call fcn.00488774
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
cmp dword [esp + 0x30], 0
je 0x48ed79
mov eax, dword [esp + 0x30]
jmp 0x48f038
push 0x4d0b36
mov edx, dword [esp + 0x10]
push edx
call sub.kernel32.dll_lstrcmpiA
test eax, eax
jne 0x48ee6e
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 0x4d0b39
lea ecx, [esp + 0x58]
push ecx
call sub.kernel32.dll_lstrcatA
lea eax, [esp + 0x54]
call fcn.00491924
push 0
push 0
push 2
push 0
push 3
push 0x40000000
lea edx, [esp + 0x6c]
push edx
call sub.kernel32.dll_CreateFileA
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], 0xffffffff
jne 0x48edf1
mov eax, 0xffffff37
jmp 0x48f038
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 0x48ee28
mov edx, dword [esp + 0x18]
push edx
call sub.kernel32.dll_CloseHandle
mov eax, 0xffffff33
jmp 0x48f038
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 0x48ee5f
mov edx, dword [esp + 0x18]
push edx
call sub.kernel32.dll_CloseHandle
mov eax, 0xffffff33
jmp 0x48f038
mov edx, dword [esp + 0x18]
push edx
call sub.kernel32.dll_CloseHandle
jmp 0x48f036
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 0x4d0b40
lea ecx, [esp + 0x58]
push ecx
call sub.kernel32.dll_lstrcatA
lea eax, [esp + 0x54]
call fcn.00491924
push 0
push 0
push 2
push 0
push 3
push 0x40000000
lea edx, [esp + 0x6c]
push edx
call sub.kernel32.dll_CreateFileA
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], 0xffffffff
jne 0x48eecf
mov eax, 0xffffff37
jmp 0x48f038
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 0x48ef06
mov edx, dword [esp + 0x18]
push edx
call sub.kernel32.dll_CloseHandle
mov eax, 0xffffff33
jmp 0x48f038
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 0x48ef3d
mov edx, dword [esp + 0x18]
push edx
call sub.kernel32.dll_CloseHandle
mov eax, 0xffffff33
jmp 0x48f038
push 0
push 0
push 3
push 0
push 3
push 0x80000000
mov edx, dword [esp + 0x1c]
push edx
call sub.kernel32.dll_CreateFileA
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x1c], 0xffffffff
jne 0x48ef75
mov ecx, dword [esp + 0x18]
push ecx
call sub.kernel32.dll_CloseHandle
mov eax, 0xffffff37
jmp 0x48f038
push 0
push 0
push 0x10
mov edx, dword [esp + 0x28]
push edx
call sub.kernel32.dll_SetFilePointer
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
mov dword [esp + 0x20], eax
cmp dword [esp + 0x20], 0
jne 0x48efcb
mov ecx, dword [esp + 0x18]
push ecx
call sub.kernel32.dll_CloseHandle
mov eax, dword [esp + 0x1c]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, 0xffffff35
jmp 0x48f038
cmp dword [esp + 0x24], 0
je 0x48f022
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 0x48f010
mov edx, dword [esp + 0x18]
push edx
call sub.kernel32.dll_CloseHandle
mov ecx, dword [esp + 0x1c]
push ecx
call sub.kernel32.dll_CloseHandle
mov eax, 0xffffff33
jmp 0x48f038
inc dword [esp + 0x28]
cmp dword [esp + 0x28], 0x100
jle 0x48ef8d
mov edx, dword [esp + 0x1c]
push edx
call sub.kernel32.dll_CloseHandle
mov ecx, dword [esp + 0x18]
push ecx
call sub.kernel32.dll_CloseHandle
xor eax, eax
add esp, 0x254
pop edi
pop esi
ret