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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cf02b
mov eax, dword fs:[0]
push eax
sub esp, 0x4b4
mov eax, dword [0x52de08]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esi + 0x294]
call fcn.0040b9a0
test al, al
je 0x418159
lea ecx, [esi + 0x2dc]
mov dword [ebp - 0x4ac], ecx
call fcn.0040b9a0
test al, al
jne 0x418159
lea eax, [ebp - 0x48c]
push eax
lea ecx, [esi + 0x324]
call fcn.00412390
xor ebx, ebx
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x48c]
cmp dword [ecx - 0xc], ebx
jne 0x417d66
lea edx, [ebp - 0x49c]
push edx
call fcn.004177a0
add esp, 4
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x48c]
call fcn.004139b0
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x49c]
add eax, 0xfffffff0
or edi, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417d69
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x417d69
or edi, 0xffffffff
lea ecx, [ebp - 0x488]
add esi, 0x688
push ecx
mov ecx, esi
mov dword [ebp - 0x4b0], esi
call fcn.004122b0
mov byte [ebp - 4], 3
lea edx, [ebp - 0x49c]
push edx
call fcn.00415070
add esp, 4
mov byte [ebp - 4], 4
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x488]
call fcn.004104a0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x49c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417dd1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x488]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edx, [ebp - 0x7c]
push edx
call fcn.00491780
mov eax, dword [ebp - 0x48c]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.00491570
xor eax, eax
lea ecx, [ebp - 0x7c]
push ecx
lea edx, [ebp - 0x20]
push edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
call fcn.00491650
push 0x400
lea eax, [ebp - 0x47c]
push ebx
push eax
mov dword [ebp - 0x484], ebx
mov dword [ebp - 0x480], ebx
call fcn.004aab30
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x484]
push 0x10
push edx
call fcn.004caa30
add esp, 0x30
mov dword [ebp - 0x498], ebx
mov byte [ebp - 4], 6
mov dword [ebp - 0x494], ebx
mov byte [ebp - 4], 7
lea eax, [ebp - 0x49c]
push eax
mov ecx, esi
call fcn.004122b0
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x494]
mov eax, dword [eax]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push eax
cmp ecx, ebx
je 0x417e93
call fcn.0040b710
jmp 0x417e99
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, edi
jne 0x417ea6
call fcn.0040b660
mov esi, eax
jmp 0x417eae
mov dword [ebp - 0x498], eax
xor esi, esi
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x49c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417ed3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, ebx
jge 0x417f3f
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x498]
cmp eax, ebx
je 0x417ef2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x498], ebx
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x488]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417f16
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x48c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x417f38
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x41815b
mov edx, dword [ebp - 0x498]
lea ecx, [ebp - 0x49c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov dword [ebp - 0x4a0], esi
cmp esi, edi
jne 0x417fac
call fcn.0040b660
cmp eax, ebx
jge 0x417fa6
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x498]
cmp eax, ebx
je 0x417f83
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x498], ebx
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x488]
call fcn.00406650
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x48c]
call fcn.00406650
xor al, al
jmp 0x41815b
mov esi, dword [ebp - 0x4a0]
mov dword [ebp - 0x4a8], ebx
mov byte [ebp - 4], 0xe
mov dword [ebp - 0x4a4], ebx
mov byte [ebp - 4], 0xf
mov eax, dword [ebp - 0x488]
push ebx
push ebx
push 0x80
push 2
push 2
push 0x40000000
push eax
lea ecx, [ebp - 0x4a8]
call fcn.0040be50
cmp eax, ebx
jge 0x418009
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x4a8]
call fcn.0044fe30
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x498]
call fcn.0044fe30
jmp 0x417f83
mov dword [ebp - 0x4c0], ebx
mov dword [ebp - 0x4bc], ebx
mov dword [ebp - 0x4b8], ebx
mov dword [ebp - 0x4b4], ebx
mov byte [ebp - 4], 0x10
push edi
push esi
lea ecx, [ebp - 0x4c0]
call fcn.0040e200
mov edi, dword [ebp - 0x4bc]
mov esi, dword [ebp - 0x4c0]
push edi
push esi
lea ecx, [ebp - 0x498]
call fcn.0040bec0
cmp eax, ebx
jge 0x4180a5
mov byte [ebp - 4], 0xf
cmp esi, ebx
je 0x418060
push esi
call fcn.004aaaaa
add esp, 4
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x4a8]
call fcn.0044fe30
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x498]
call fcn.0044fe30
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x488]
call fcn.00406650
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48c]
call fcn.00406650
xor al, al
jmp 0x41815b
push esi
push esi
lea ecx, [ebp - 0x484]
push edi
push ecx
call fcn.004ca8c0
mov eax, dword [ebp - 0x4a8]
add esp, 0x10
push ebx
lea edx, [ebp - 0x49c]
push edx
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, ebx
jne 0x4180df
call fcn.0040b660
cmp eax, ebx
jl 0x41804f
lea ecx, [ebp - 0x488]
push ecx
mov ecx, dword [ebp - 0x4b0]
call fcn.00414190
mov ecx, dword [ebp - 0x4ac]
lea edx, [ebp - 0x48d]
push edx
mov byte [ebp - 0x48d], 1
call fcn.0040ba60
mov byte [ebp - 4], 0xf
cmp esi, ebx
je 0x41811b
push esi
call fcn.004aaaaa
add esp, 4
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x4a8]
call fcn.0044fe30
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x498]
call fcn.0044fe30
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x488]
call fcn.00406650
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48c]
call fcn.00406650
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004aaa9b
mov esp, ebp
pop ebp
ret