Function at 0x6dd47700
Capabilities:
Delete file
Get file size
Move file
Read file on windows
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x278
mov eax, dword [0x6de41080]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
lea ecx, [ebp - 0x118]
push ecx
push 0x6dd32370
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
xor esi, esi
push 3
push 0x80000000
mov dword [ebp - 0x25c], eax
mov dword [ebp - 0x234], esi
mov dword [ebp - 0x244], esi
mov dword [ebp - 0x250], esi
call fcn.6dd47480
mov edi, eax
add esp, 0x10
cmp edi, 0xffffffff
mov dword [ebp - 0x240], edi
je 0x6dd4778b
lea edx, [ebp - 0x254]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [ebp - 0x254], esi
jne 0x6dd47784
mov ecx, 4
sub ecx, eax
cmp ecx, dword [ebp + 0xc]
jae 0x6dd4786a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x22c]
push edx
push 0x6dd32370
push 2
push 0x40000000
call fcn.6dd47480
mov esi, eax
add esp, 0x10
cmp esi, 0xffffffff
je 0x6dd47c87
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0x230]
push eax
push 4
lea ecx, [ebp - 0x24c]
push ecx
push esi
mov dword [ebp - 0x24c], 0x18
call edi
cmp dword [ebp - 0x230], 4
jne 0x6dd47854
mov eax, dword [ebx + 0x40c]
mov ecx, dword [ebx + 0x410]
mov edx, dword [ebx + 0x408]
push 0
mov dword [ebp - 0x274], eax
lea eax, [ebp - 0x230]
push eax
mov dword [ebp - 0x270], ecx
push 0x18
lea ecx, [ebp - 0x278]
mov dword [ebp - 0x278], edx
mov edx, dword [ebx + 0x414]
mov ebx, dword [ebp + 0xc]
push ecx
push esi
mov dword [ebp - 0x26c], edx
mov dword [ebp - 0x268], 0x1c
mov dword [ebp - 0x264], ebx
call edi
cmp dword [ebp - 0x230], 0x18
jne 0x6dd47854
mov eax, dword [ebp - 0x25c]
push 0
lea edx, [ebp - 0x230]
push edx
push ebx
push eax
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
call fcn.6dd58dd9
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x22c]
push ecx
push 0x6dd32380
push 2
push 0x40000000
call fcn.6dd47480
add esp, 0x10
cmp eax, 0xffffffff
mov dword [ebp - 0x23c], eax
je 0x6dd47c9c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea edx, [ebp - 0x248]
push edx
push 4
lea eax, [ebp - 0x238]
push eax
push edi
call esi
cmp dword [ebp - 0x248], 4
jb 0x6dd47c9c
mov ecx, dword [ebp - 0x238]
push ecx
call fcn.6dd47440
add esp, 4
test eax, eax
mov dword [ebp - 0x234], eax
je 0x6dd47c9c
mov eax, dword [ebp - 0x238]
mov ecx, dword [ebp - 0x234]
push 0
lea edx, [ebp - 0x248]
push edx
push eax
push ecx
push edi
call esi
mov ecx, dword [ebp - 0x238]
cmp dword [ebp - 0x248], ecx
jb 0x6dd47c9c
mov eax, 0xaaaaaaab
mul ecx
shr edx, 4
test edx, edx
mov esi, 1
mov dword [ebp - 0x254], esi
jbe 0x6dd47968
mov eax, dword [ebp - 0x234]
add eax, 8
jmp 0x6dd47930
mov ecx, dword [ebx + 0x408]
cmp dword [eax - 8], ecx
jne 0x6dd4795b
mov ecx, dword [eax - 4]
cmp ecx, dword [ebx + 0x40c]
jne 0x6dd4795b
mov ecx, dword [eax]
cmp ecx, dword [ebx + 0x410]
jne 0x6dd4795b
mov ecx, dword [eax + 4]
cmp ecx, dword [ebx + 0x414]
je 0x6dd4795c
inc esi
add eax, 0x18
dec edx
jne 0x6dd47930
mov dword [ebp - 0x254], esi
lea esi, [esi + esi*2]
shl esi, 3
push esi
mov dword [ebp - 0x260], esi
call fcn.6dd47440
add esp, 4
test eax, eax
mov dword [ebp - 0x244], eax
je 0x6dd47c9c
mov edx, dword [ebx + 0x408]
mov ecx, eax
mov dword [ecx], edx
mov eax, dword [ebx + 0x40c]
mov dword [ecx + 4], eax
mov edx, dword [ebx + 0x410]
mov dword [ecx + 8], edx
mov eax, dword [ebx + 0x414]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp + 0xc]
lea edi, [esi + 4]
mov dword [ecx + 0x10], edi
add edi, eax
mov dword [ecx + 0x14], eax
mov eax, 0xaaaaaaab
mul dword [ebp - 0x238]
shr edx, 4
test edx, edx
mov dword [ebp - 0x258], 0
jbe 0x6dd47a64
lea esi, [ecx + 0x20]
mov ecx, dword [ebp - 0x234]
add ecx, 8
lea ebx, [ebx]
mov eax, dword [ecx - 8]
cmp eax, dword [ebx + 0x408]
jne 0x6dd47a1b
mov edx, dword [ecx - 4]
cmp edx, dword [ebx + 0x40c]
jne 0x6dd47a1b
mov edx, dword [ecx]
cmp edx, dword [ebx + 0x410]
jne 0x6dd47a1b
mov edx, dword [ecx + 4]
cmp edx, dword [ebx + 0x414]
je 0x6dd47a3d
mov dword [esi - 8], eax
mov eax, dword [ecx - 4]
mov dword [esi - 4], eax
mov edx, dword [ecx]
mov dword [esi], edx
mov eax, dword [ecx + 4]
mov dword [esi + 8], edi
mov dword [esi + 4], eax
mov edx, dword [ecx + 0xc]
mov dword [esi + 0xc], edx
add edi, dword [ecx + 0xc]
add esi, 0x18
inc dword [ebp - 0x258]
mov eax, 0xaaaaaaab
mul dword [ebp - 0x238]
mov eax, dword [ebp - 0x258]
shr edx, 4
add ecx, 0x18
cmp eax, edx
jb 0x6dd479f0
mov esi, dword [ebp - 0x260]
mov edx, dword [ebp - 0x23c]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0x230]
push eax
push 4
lea ecx, [ebp - 0x24c]
push ecx
push edx
mov dword [ebp - 0x24c], esi
call edi
cmp dword [ebp - 0x230], 4
jne 0x6dd47c96
mov ecx, dword [ebp - 0x24c]
mov edx, dword [ebp - 0x244]
push 0
lea eax, [ebp - 0x230]
push eax
mov eax, dword [ebp - 0x23c]
push ecx
push edx
push eax
call edi
mov ecx, dword [ebp - 0x230]
cmp ecx, dword [ebp - 0x24c]
jne 0x6dd47c96
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x25c]
mov ecx, dword [ebp - 0x23c]
push 0
lea edx, [ebp - 0x230]
push edx
push esi
push eax
push ecx
call edi
cmp dword [ebp - 0x230], esi
jne 0x6dd47c96
mov eax, dword [ebp - 0x254]
cmp eax, 1
jbe 0x6dd47c20
xor edx, edx
cmp eax, 1
jbe 0x6dd47b23
mov ecx, dword [ebp - 0x244]
add ecx, 0x2c
lea esi, [eax - 1]
mov eax, dword [ecx]
cmp eax, edx
jbe 0x6dd47b1d
mov edx, eax
add ecx, 0x18
dec esi
jne 0x6dd47b15
push edx
call fcn.6dd47440
add esp, 4
test eax, eax
mov dword [ebp - 0x250], eax
je 0x6dd47c96
mov eax, 0xaaaaaaab
mul dword [ebp - 0x238]
shr edx, 4
xor edi, edi
test edx, edx
jbe 0x6dd47c20
mov esi, dword [ebp - 0x234]
add esi, 8
jmp 0x6dd47b60
mov edx, dword [esi - 8]
cmp edx, dword [ebx + 0x408]
jne 0x6dd47b8b
mov eax, dword [esi - 4]
cmp eax, dword [ebx + 0x40c]
jne 0x6dd47b8b
mov ecx, dword [esi]
cmp ecx, dword [ebx + 0x410]
jne 0x6dd47b8b
mov edx, dword [esi + 4]
cmp edx, dword [ebx + 0x414]
je 0x6dd47c06
mov eax, dword [esi + 8]
mov ecx, dword [ebp - 0x240]
push 0
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, dword [esi + 8]
jne 0x6dd47c96
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp - 0x250]
push 0
lea edx, [ebp - 0x248]
push edx
mov edx, dword [ebp - 0x240]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esi + 0xc]
cmp dword [ebp - 0x248], eax
jb 0x6dd47c96
mov edx, dword [ebp - 0x250]
push 0
lea ecx, [ebp - 0x230]
push ecx
push eax
mov eax, dword [ebp - 0x23c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x230]
cmp ecx, dword [esi + 0xc]
jne 0x6dd47c96
mov eax, 0xaaaaaaab
mul dword [ebp - 0x238]
inc edi
shr edx, 4
add esi, 0x18
cmp edi, edx
jb 0x6dd47b60
mov edx, dword [ebp - 0x23c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [ebp - 0x240]
push eax
call esi
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [ebp - 0x118]
push edx
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov ecx, dword [ebp - 0x244]
push ecx
call fcn.6dd47460
mov edx, dword [ebp - 0x234]
push edx
call fcn.6dd47460
add esp, 8
mov eax, dword [ebp - 0x250]
test eax, eax
je 0x6dd47c87
push eax
call fcn.6dd47460
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.6dd58dd9
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x240]
mov edx, dword [ebp - 0x23c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
push edi
call esi
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x118]
push eax
call esi
lea ecx, [ebp - 0x22c]
push ecx
call esi
mov eax, dword [ebp - 0x244]
test eax, eax
je 0x6dd47cd9
push eax
call fcn.6dd47460
add esp, 4
mov eax, dword [ebp - 0x234]
test eax, eax
je 0x6dd47c74
push eax
call fcn.6dd47460
add esp, 4
jmp 0x6dd47c74