Function at 0x40c930
Capabilities:
Delete file
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x318
push ebx
push esi
push edi
mov dword [ebp - 0x314], 0
mov dword [ebp - 0x2d4], 0
mov dword [ebp - 0x2d8], 0
mov edi, dword [ebp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov edx, edi
lea edi, [ebp - 0x2cc]
mov esi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x2cc]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
lea eax, [ecx - 1]
mov dword [ebp - 0x2d8], eax
cmp dword [ebp - 0x2d8], 5
jge 0x40c9b8
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40cbcd
sub dword [ebp - 0x2d8], 4
push 0
call fcn.00452990
add esp, 4
push eax
push str.__X.lwa
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov eax, dword [ebp - 0x2d8]
mov byte [ebp + eax - 0x2cc], 0
lea edi, [ebp - 0x310]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, edi
mov ebx, ecx
lea edi, [ebp - 0x2cc]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov esi, edx
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0
push 0
push 2
push 0
push 0
push 0xc0000000
lea eax, [ebp - 0x2cc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x318], eax
cmp dword [0x45e03c], 0
je 0x40ca6e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp - 0x318]
push eax
push str._r_n_J:SR:Open___X__GLE_d
call fcn.00452380
add esp, 0xc
cmp dword [ebp - 0x318], 0xffffffff
jne 0x40caab
cmp dword [0x45e03c], 0
je 0x40ca9c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._r_nRhan_FAILED___x___unable_to_move_77T
call fcn.00452380
add esp, 8
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40cbcd
cmp dword [0x45e03c], 0
je 0x40cacc
lea eax, [ebp - 0x2cc]
push eax
push str._r_nIJ4:_Interrupted_Offline_Xmit_saving_session_to___s_
call fcn.00452380
add esp, 8
cmp dword [ebp + 8], 0
je 0x40cb10
push 0
lea eax, [ebp - 0x314]
push eax
push 4
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp - 0x318]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0x314]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0x318]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x2d0], 1
cmp dword [ebp - 0x2d0], 0
je 0x40cbac
mov dword [ebp - 0x314], 0
push 0
lea eax, [ebp - 0x314]
push eax
push 0x7d000
push 0x482660
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x2d0], eax
cmp dword [ebp - 0x2d0], 0
je 0x40cb90
cmp dword [ebp - 0x314], 0
je 0x40cb90
push 0
lea eax, [ebp - 0x2d4]
push eax
mov eax, dword [ebp - 0x314]
push eax
push 0x482660
mov eax, dword [ebp - 0x318]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x314], 0
jne 0x40cba7
mov dword [ebp - 0x2d0], 0
jmp 0x40cb1a
mov eax, dword [ebp - 0x318]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebx
leave
ret