Function at 0x4ac8fd
Capabilities:
Delete file
Get file size
Write file on windows

Disassembly:
mov eax, 0x570d30
call fcn.00524444
sub esp, 0x1b4
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x18], ebx
call fcn.0053f16c
mov esi, dword [ebp + 0x38]
mov dword [ebp - 4], ebx
cmp esi, ebx
je 0x4ac948
cmp dword [esi + 0x28], ebx
je 0x4ac948
mov dword [ebp - 0x18], 1
mov ecx, edi
call fcn.005441e0
cmp dword [ebp - 0x18], ebx
jne 0x4aca5b
lea ecx, [ebp - 0x1c0]
call fcn.0047a08c
lea eax, [ebp - 0x1c0]
mov byte [ebp - 4], 1
push eax
mov byte [ebp - 0x1d], 0x80
push dword [ebp + 0x10]
call fcn.00479e27
test eax, eax
je 0x4ac98e
mov al, byte [ebp - 0x1a8]
and al, 2
cmp al, 2
jne 0x4ac98e
mov byte [ebp - 0x1d], 0x82
cmp dword [ebp + 0x28], ebx
jne 0x4ac9c1
movzx eax, byte [ebp - 0x1d]
push ebx
push eax
mov eax, dword [0x62ad48]
mov dword [ebp - 0x2c], ebx
neg eax
sbb eax, eax
and al, 0xfe
add eax, 4
push eax
push ebx
push 3
push 0xc0000000
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp + 0x28], eax
jmp 0x4ac9c8
mov dword [ebp - 0x2c], 1
or esi, 0xffffffff
cmp dword [ebp + 0x28], esi
jne 0x4aca18
lea eax, [ebp + 0x28]
push 0xe000
push eax
call fcn.00402f3e
pop ecx
pop ecx
mov eax, dword [eax]
push 0x30
push eax
push 0x5c8808
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.0054239a
lea ecx, [ebp + 0x28]
mov byte [ebp - 4], 1
call fcn.0053eb4f
and byte [ebp - 4], 0
lea ecx, [ebp - 0x1c0]
call fcn.0047a0bf
mov dword [ebp - 4], esi
jmp 0x4acb87
push ebx
push ebx
push ebx
push dword [ebp + 0x28]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, esi
jne 0x4aca41
cmp dword [ebp - 0x2c], ebx
jne 0x4aca01
push dword [ebp + 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x4aca01
push dword [ebp + 0x28]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
and byte [ebp - 4], 0
lea ecx, [ebp - 0x1c0]
call fcn.0047a0bf
jmp 0x4aca6e
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.00479f84
push ebx
push ebx
mov ecx, esi
call fcn.00479fcc
cmp dword [ebp + 0x24], 2
je 0x4aca7a
cmp dword [ebp + 0x24], 4
jne 0x4aca82
mov eax, dword [ebp + 0x14]
or eax, dword [ebp + 0x18]
je 0x4aca90
cmp dword [ebp + 0x24], 3
jne 0x4acaa0
mov eax, dword [ebp + 0x14]
or eax, dword [ebp + 0x18]
jne 0x4acaa0
mov eax, dword [edi + 0x3c]
mov eax, dword [eax + 0x1f4]
cdq
mov dword [ebp + 0x14], eax
mov dword [ebp + 0x18], edx
mov dword [ebp - 0x34], ebx
cmp dword [ebp - 0x34], ebx
jne 0x4acb9f
lea ecx, [ebp - 0x74]
call fcn.005459d2
mov ecx, dword [ebp + 8]
push ebx
push dword [ebp + 0x18]
mov byte [ebp - 4], 4
mov dword [ebp - 0x34], 1
push dword [ebp + 0x14]
call fcn.00479f84
and dword [ebp - 4], 0
call fcn.00545a10
xor ebx, ebx
jmp 0x4acaa3
lea ecx, [ebp - 0x84]
call fcn.0053f261
xor eax, eax
jmp 0x4ad390
mov eax, dword [0x5c8324]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
add eax, 2
push eax
push 2
call edi
cmp eax, ebx
mov dword [ebp - 0x3c], eax
jne 0x4acbbe
call fcn.0053b6fe
push dword [ebp - 0x3c]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalLock]
call esi
cmp dword [ebp + 0x24], ebx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
je 0x4acc4b
mov eax, dword [0x5c8324]
lea eax, [eax + eax + 4]
push eax
push 2
mov dword [ebp - 0x48], eax
call edi
cmp eax, ebx
mov dword [ebp - 0x40], eax
je 0x4acbfc
push eax
call esi
cmp eax, ebx
mov dword [ebp - 0x4c], eax
jne 0x4acc4b
mov ecx, dword [ebp - 0x24]
push 0x30
push 0x5c87f0
push 0x5c87c0
call fcn.0054239a
cmp dword [ebp - 0x2c], ebx
jne 0x4acc2c
cmp dword [ebp - 0x18], ebx
jne 0x4acc2c
push dword [ebp + 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp - 0x24]
call fcn.005441f5
jmp 0x4ad37f
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x34], 1
xor edi, edi
cmp dword [ebp - 0x44], edi
jne 0x4ad2cc
cmp dword [ebp + 0x2c], edi
mov dword [ebp - 0x38], edi
je 0x4acd2f
call fcn.0047ac66
test eax, eax
je 0x4acd2f
mov eax, dword [0x61d784]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], eax
push 0x34
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xb
call fcn.00545796
push 0xe0
lea ecx, [ebp - 0x28]
call fcn.00545796
push dword [ebp + 0xc]
lea ecx, [ebp - 0x28]
call fcn.0053ef2b
push 0x5c44a4
lea ecx, [ebp - 0x28]
call fcn.0053ef2b
mov ecx, dword [ebp - 0x24]
push 4
push dword [ebp - 0x14]
push dword [ebp - 0x28]
call fcn.0054239a
cmp eax, 6
jne 0x4acd17
cmp dword [ebp - 0x2c], edi
push 1
pop esi
mov dword [ebp - 0x38], esi
jne 0x4accf1
cmp dword [ebp - 0x18], edi
jne 0x4accf1
push dword [ebp + 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp + 0x28], edi
mov eax, dword [ebp + 0x30]
cmp eax, edi
je 0x4accfa
mov dword [eax], esi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xa
call fcn.0053eb4f
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0053eb4f
jmp 0x4ad2cc
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xa
call fcn.0053eb4f
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0053eb4f
lea ecx, [ebp - 0x90]
call fcn.005459d2
mov ecx, dword [ebp + 8]
push dword [0x5c8324]
mov byte [ebp - 4], 0xd
mov eax, dword [ecx]
push dword [ebp - 0x30]
call dword [eax + 0x34]
mov dword [ebp + 0x18], eax
and dword [ebp - 4], 0
call fcn.00545a10
cmp dword [ebp - 0x38], 0
jne 0x4acc55
lea ecx, [ebp - 0x98]
call fcn.005459d2
mov eax, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x18]
and eax, dword [ebp + 0x20]
mov byte [ebp - 4], 0x14
cmp eax, 0xffffffff
je 0x4ace80
mov ecx, dword [ebp + 0x1c]
mov eax, edi
cdq
sub ecx, eax
mov eax, dword [ebp + 0x20]
sbb eax, edx
js 0x4ace7a
jg 0x4acda3
test ecx, ecx
jbe 0x4ace7a
mov dword [ebp + 0x1c], ecx
mov dword [ebp + 0x20], eax
jmp 0x4ace80
mov edi, dword [ebp + 0x1c]
mov dword [ebp + 0x18], edi
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x4ad1c9
cmp eax, 1
je 0x4acf63
cmp eax, 3
je 0x4ad040
cmp eax, 4
jne 0x4acf31
mov ebx, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x30]
add ecx, ebx
push ecx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x28], eax
add edi, eax
push ecx
lea eax, [ebp - 0x28]
push edi
push eax
mov dword [ebp - 0x14], ebx
call fcn.0042d5ad
mov esi, dword [ebp - 0x14]
add esp, 0x10
sub esi, ebx
cmp dword [ebp - 0x34], 0
je 0x4ad0ba
xor eax, eax
cmp dword [ebp + 0x3c], eax
jne 0x4ad0ba
cmp dword [0x5c832c], eax
jne 0x4aceff
mov ecx, dword [ebp - 0x24]
mov ecx, dword [ecx + 0x3c]
cmp dword [ecx + 0x1f8], eax
je 0x4ad0ba
cmp dword [ebp - 0x18], eax
mov dword [ebp - 0x34], eax
je 0x4acf20
mov ecx, dword [ebp + 0x38]
push 3
pop edi
mov eax, dword [ecx]
push edi
push 0x5c8330
call dword [eax + 0x38]
mov dword [ebp - 0x1c], edi
jmp 0x4ad0ba
push eax
lea eax, [ebp - 0x1c]
push eax
push 3
push 0x5c8330
jmp 0x4ad0a5
mov eax, dword [0x628a4c]
cmp eax, 0xfde9
jne 0x4acf43
call dword [sym.imp.KERNEL32.dll_GetACP]
mov ebx, dword [ebp - 0x4c]
xor ecx, ecx
push ecx
push ecx
push dword [ebp - 0x48]
shr edi, 1
push ebx
push edi
push dword [ebp - 0x30]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
jmp 0x4ad0ba
mov eax, dword [0x628a4c]
cmp edi, dword [0x5c8324]
mov dword [ebp - 0x14], eax
jge 0x4acfea
mov edi, dword [ebp + 0x18]
mov esi, dword [ebp - 0x30]
cmp dword [ebp - 0x14], 0xfde9
jne 0x4acf8b
call dword [sym.imp.KERNEL32.dll_GetACP]
mov dword [ebp - 0x14], eax
push dword [ebp - 0x48]
mov ebx, dword [ebp - 0x4c]
push ebx
push edi
push esi
push 0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
shl esi, 1
mov eax, edi
mov ecx, dword [ebp + 8]
sub eax, dword [ebp + 0x18]
push 1
cdq
push edx
push eax
call fcn.00479f84
cmp dword [ebp - 0x34], 0
je 0x4ad0ba
cmp dword [ebp + 0x3c], 0
jne 0x4ad0ba
xor eax, eax
cmp dword [ebp - 0x18], eax
mov dword [ebp - 0x34], eax
je 0x4ad099
mov ecx, dword [ebp + 0x38]
push 2
pop edi
mov eax, dword [ecx]
push edi
push 0x5c8328
jmp 0x4acf15
mov eax, dword [ebp + 0x18]
mov esi, dword [ebp - 0x30]
lea edi, [eax - 1]
test edi, edi
jle 0x4ad008
mov al, byte [edi + esi]
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x4ad008
dec edi
jmp 0x4acff3
inc edi
cmp dword [ebp + 0x24], 3
jne 0x4acf79
mov ebx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x48]
add eax, ebx
mov dword [ebp - 0x28], esi
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [edi + esi]
push eax
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x14], ebx
call fcn.0042d70a
mov esi, dword [ebp - 0x14]
add esp, 0x10
sub esi, ebx
jmp 0x4acfa3
cmp edi, dword [0x5c8324]
mov dword [ebp - 0x14], 0xfde9
jge 0x4ad057
mov edi, dword [ebp + 0x18]
mov esi, dword [ebp - 0x30]
jmp 0x4ad013
mov ecx, dword [ebp + 0x18]
mov esi, dword [ebp - 0x30]
xor edx, edx
lea edi, [ecx - 1]
test edi, edi
jle 0x4ad009
mov al, byte [edi + esi]
inc edx
mov bl, al
and bl, 0xc0
cmp bl, 0xc0
jne 0x4ad089
movzx eax, al
shr eax, 2
movsx eax, byte [eax + 0x5c84dc]
add eax, edi
cmp eax, ecx
jge 0x4ad009
jmp 0x4ad08e
cmp edx, 5
jle 0x4ad096
lea edi, [ecx - 1]
jmp 0x4ad009
dec edi
jmp 0x4ad062
push eax
lea eax, [ebp - 0x1c]
push eax
push 2
push 0x5c8328
push dword [ebp + 0x28]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4ad1a7
or dword [ebp - 0x1c], 0xffffffff
cmp dword [ebp - 0x18], 0
je 0x4ad1a7
mov ecx, dword [ebp + 0x38]
push esi
push ebx
mov eax, dword [ecx]
call dword [eax + 0x38]
mov dword [ebp - 0x1c], esi
mov edi, dword [ebp + 0x18]
cmp edi, dword [0x5c8324]
push 1
pop edi
jge 0x4ad0e2
mov dword [ebp - 0x44], edi
cmp dword [ebp - 0x1c], 0xffffffff
je 0x4ad0f1
cmp dword [ebp - 0x1c], esi
je 0x4ad199
xor ebx, ebx
cmp dword [ebp - 0x2c], ebx
jne 0x4ad10f
cmp dword [ebp - 0x18], ebx
jne 0x4ad10f
push dword [ebp + 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x50]
push 0xe000
push eax
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x38], edi
call fcn.00402f3e
pop ecx
pop ecx
push dword [ebp + 0x10]
mov esi, dword [eax]
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0x15
call fcn.0053ebbd
mov edi, eax
push 0x5c8780
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0x16
call fcn.0053ebbd
push edi
push eax
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 0x17
push eax
call fcn.0053ed7e
mov eax, dword [eax]
mov ecx, dword [ebp - 0x24]
push ebx
push esi
push eax
mov byte [ebp - 4], 0x18
call fcn.0054239a
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0x17
call fcn.0053eb4f
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0x16
call fcn.0053eb4f
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0x15
call fcn.0053eb4f
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0x14
call fcn.0053eb4f
and dword [ebp - 4], 0
call fcn.00545a10
jmp 0x4acc55
lea eax, [ebp - 0x1c]
push 0
push eax
push esi
push ebx
push dword [ebp + 0x28]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4ad0d1
or dword [ebp - 0x1c], 0xffffffff
jmp 0x4ad0d1
cmp dword [ebp - 0x18], 0
mov esi, edi
je 0x4ad1e5
mov ecx, dword [ebp + 0x38]
push edi
push dword [ebp - 0x30]
mov eax, dword [ecx]
call dword [eax + 0x38]
mov dword [ebp - 0x1c], edi
jmp 0x4ad0d4
lea eax, [ebp - 0x1c]
push 0
push eax
push edi
push dword [ebp - 0x30]
push dword [ebp + 0x28]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4ad0d1
or dword [ebp - 0x1c], 0xffffffff
jmp 0x4ad0d4
cmp dword [ebp + 0x28], edi
jne 0x4ad2d6
cmp dword [ebp - 0x18], edi
je 0x4ad346
mov esi, dword [ebp + 0x34]
cmp esi, edi
je 0x4ad301
cmp dword [ebp - 0x18], edi
mov dword [ebp + 0x24], edi
je 0x4ad2ef
mov ecx, dword [ebp + 0x38]
call fcn.0047a030
jmp 0x4ad2fc
lea eax, [ebp + 0x24]
push eax
push dword [ebp + 0x28]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi], eax
mov dword [esi + 4], edi
lea ecx, [ebp + 0x14]
call fcn.005459d2
push dword [ebp + 0x28]
mov byte [ebp - 4], 0x1f
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
cmp dword [ebp - 0x2c], edi
jne 0x4ad33b
cmp dword [ebp - 0x18], 0
jne 0x4ad33b
push dword [ebp + 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4ad33b
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00546360
and dword [ebp - 4], 0
call fcn.00545a10
xor edi, edi
cmp dword [ebp - 0x40], edi
je 0x4ad35d
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp - 0x24]
call fcn.005441f5
xor ebx, ebx
cmp dword [ebp - 0x38], edi
sete bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x84]
call fcn.0053f261
mov eax, ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x38