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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x521516
mov eax, dword fs:[0]
push eax
mov eax, 0x100c0
call fcn.004e3330
mov eax, dword [0x5640a8]
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 ebx, ecx
mov edx, dword [ebx]
xor ecx, ecx
cmp byte [ebx + 0x48], cl
xorps xmm0, xmm0
movlpd qword [ebp - 0x10070], xmm0
mov eax, dword [edx + 0x48]
mov dword [ebp - 0x100b4], eax
mov eax, dword [edx + 0x44]
mov dword [ebp - 0x100b0], eax
mov eax, 0x3e8
cmovne eax, ecx
push eax
push ecx
lea eax, [ebp - 0x100b4]
push eax
push 2
call dword [sym.imp.KERNEL32.DLL_WaitForMultipleObjects]
test eax, eax
je 0x421751
mov ecx, dword [ebp - 0x1006c]
mov dword [ebp - 0x10080], ecx
mov ecx, dword [ebp - 0x10070]
mov dword [ebp - 0x10074], ecx
cmp eax, 1
jne 0x420f64
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x54]
mov ecx, dword [ecx + 0x58]
cmp eax, ecx
je 0x420f64
mov edx, dword [eax]
cmp dword [edx], 0
jne 0x42126a
add eax, 4
cmp eax, ecx
jne 0x420f52
mov edi, dword [ebx]
xorps xmm0, xmm0
movlpd qword [ebp - 0x10070], xmm0
mov esi, dword [edi + 0x54]
mov edi, dword [edi + 0x58]
cmp esi, edi
je 0x42117f
mov eax, dword [ebp - 0x1006c]
mov dword [ebp - 0x1005c], eax
mov eax, dword [ebp - 0x10070]
mov dword [ebp - 0x10064], eax
mov eax, dword [esi]
push dword [eax + 0xc]
push dword [eax + 8]
lea eax, [ebp - 0x10040]
push eax
call fcn.0041f090
push eax
lea eax, [ebp - 0x10058]
mov dword [ebp - 4], 0
push str.Slice
push eax
call fcn.004224f0
add esp, 0x18
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1002c]
cmp eax, 8
jb 0x421024
mov ecx, dword [ebp - 0x10040]
inc eax
cmp eax, 0x7fffffff
ja 0x421706
add eax, eax
cmp eax, 0x1000
jb 0x42101b
test cl, 0x1f
jne 0x421706
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x421706
sub ecx, eax
cmp ecx, 4
jb 0x421706
cmp ecx, 0x23
ja 0x421706
mov ecx, eax
push ecx
call fcn.004e1bac
add esp, 4
xor eax, eax
mov dword [ebp - 0x1002c], 7
push 4
push str.size
lea ecx, [ebp - 0x10028]
mov dword [ebp - 0x10030], 0
mov word [ebp - 0x10040], ax
mov dword [ebp - 0x10014], 7
mov dword [ebp - 0x10018], eax
mov word [ebp - 0x10028], ax
call fcn.00402570
mov eax, dword [esi]
mov ecx, dword [ebx]
add ecx, 0x28
push dword [eax + 0x24]
push dword [eax + 0x20]
lea eax, [ebp - 0x10028]
push eax
lea eax, [ebp - 0x10058]
push eax
call fcn.004246b0
mov eax, dword [ebp - 0x10014]
cmp eax, 8
jb 0x4210e3
mov ecx, dword [ebp - 0x10028]
inc eax
cmp eax, 0x7fffffff
ja 0x421706
add eax, eax
cmp eax, 0x1000
jb 0x4210da
test cl, 0x1f
jne 0x421706
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x421706
sub ecx, eax
cmp ecx, 4
jb 0x421706
cmp ecx, 0x23
ja 0x421706
mov ecx, eax
push ecx
call fcn.004e1bac
add esp, 4
mov eax, dword [esi]
mov ecx, dword [ebp - 0x10064]
mov edx, dword [ebp - 0x1005c]
add ecx, dword [eax + 0x20]
mov dword [ebp - 0x10064], ecx
adc edx, dword [eax + 0x24]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10044]
mov dword [ebp - 0x1005c], edx
cmp eax, 8
jb 0x421172
lea ecx, [eax + 1]
mov eax, dword [ebp - 0x10058]
cmp ecx, 0x7fffffff
ja 0x421706
add ecx, ecx
cmp ecx, 0x1000
jb 0x42115d
test al, 0x1f
jne 0x421706
mov ecx, dword [eax - 4]
cmp ecx, eax
jae 0x421706
sub eax, ecx
cmp eax, 4
jb 0x421706
cmp eax, 0x23
ja 0x421706
mov eax, ecx
push eax
call fcn.004e1bac
mov edx, dword [ebp - 0x1005c]
add esp, 4
mov ecx, dword [ebp - 0x10064]
add esi, 4
cmp esi, edi
jne 0x420f97
jmp 0x421197
mov edx, dword [ebp - 0x1006c]
mov ecx, dword [ebp - 0x10070]
mov dword [ebp - 0x1005c], edx
mov dword [ebp - 0x10064], ecx
cmp dword [ebx + 0x44], 0
je 0x421223
sub ecx, dword [ebp - 0x10074]
mov eax, edx
mov dword [ebp - 0x1007c], ecx
sbb eax, dword [ebp - 0x10080]
mov ecx, dword [ebx]
mov dword [ebp - 0x10078], eax
mov eax, dword [ecx + 0x20]
mov dword [ebp - 0x100ac], eax
mov eax, dword [ecx + 0x24]
mov ecx, dword [ebx + 0x44]
mov dword [ebp - 0x100a8], eax
mov eax, dword [ebp - 0x10064]
mov dword [ebp - 0x1009c], eax
mov dword [ebp - 0x10098], edx
mov dword [ebp - 0x10060], 1
test ecx, ecx
je 0x4212a7
mov eax, dword [ecx]
lea edx, [ebp - 0x1007c]
push edx
lea edx, [ebp - 0x100ac]
push edx
lea edx, [ebp - 0x1009c]
push edx
lea edx, [ebp - 0x10060]
push edx
call dword [eax + 8]
mov edx, dword [ebp - 0x1005c]
mov ecx, dword [ebp - 0x10064]
mov eax, dword [ebx]
mov dword [ebp - 0x10074], ecx
mov dword [ebp - 0x10080], edx
cmp dword [eax + 0x20], ecx
jne 0x42123f
cmp dword [eax + 0x24], edx
je 0x4212cc
xor ecx, ecx
mov eax, 0x3e8
cmp byte [ebx + 0x48], cl
cmovne eax, ecx
push eax
push ecx
lea eax, [ebp - 0x100b4]
push eax
push 2
call dword [sym.imp.KERNEL32.DLL_WaitForMultipleObjects]
test eax, eax
jne 0x420f41
jmp 0x421751
cmp dword [ebx + 0x44], 0
je 0x4217bf
mov eax, dword [edx]
xorps xmm0, xmm0
mov ecx, dword [ebx + 0x44]
cdq
mov dword [ebp - 0x1007c], eax
mov dword [ebp - 0x10078], edx
movlpd qword [ebp - 0x10094], xmm0
movlpd qword [ebp - 0x1008c], xmm0
mov dword [ebp - 0x10060], 1
test ecx, ecx
jne 0x4212ac
call fcn.004de9c4
lea edx, [ebp - 0x1007c]
push edx
lea edx, [ebp - 0x10094]
push edx
lea edx, [ebp - 0x1008c]
push edx
lea edx, [ebp - 0x10060]
jmp 0x4217b9
cmp dword [ebx + 0x18], 8
lea eax, [ebx + 4]
jb 0x4212d7
mov eax, dword [eax]
push 0
push 0x80
push 1
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
mov dword [ebp - 0x10080], edi
cmp edi, 0xffffffff
jne 0x4213a7
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call esi
cmp eax, 0x50
jne 0x421341
cmp dword [ebx + 0x18], 8
lea eax, [ebx + 4]
jb 0x421319
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
mov dword [ebp - 0x10080], eax
cmp edi, 0xffffffff
jne 0x4213a7
call esi
cmp dword [ebx + 0x44], 0
je 0x4217bf
mov ecx, dword [ebx + 0x44]
xorps xmm0, xmm0
cdq
mov dword [ebp - 0x1007c], eax
mov dword [ebp - 0x10078], edx
movlpd qword [ebp - 0x10094], xmm0
movlpd qword [ebp - 0x1008c], xmm0
mov dword [ebp - 0x10060], 2
test ecx, ecx
jne 0x421381
call fcn.004de9c4
mov eax, dword [ecx]
lea edx, [ebp - 0x1007c]
push edx
lea edx, [ebp - 0x10094]
push edx
lea edx, [ebp - 0x1008c]
push edx
lea edx, [ebp - 0x10060]
push edx
call dword [eax + 8]
jmp 0x421751
mov ecx, dword [ebx]
xorps xmm0, xmm0
xor edx, edx
movlpd qword [ebp - 0x10070], xmm0
mov esi, dword [ebp - 0x1006c]
mov dword [ebp - 0x10060], edx
mov eax, dword [ecx + 0x58]
sub eax, dword [ecx + 0x54]
sar eax, 2
test eax, eax
mov eax, dword [ebp - 0x10070]
mov dword [ebp - 0x1005c], eax
je 0x4216a5
mov dword [ebp - 0x10064], esi
cmp byte [ecx + 0x18], 0
jne 0x4216a5
mov eax, dword [ecx + 0x54]
lea esi, [eax + edx*4]
mov eax, dword [esi]
add eax, 0x2c
mov dword [ebp - 0x1006c], esi
cmp dword [eax + 0x14], 8
jb 0x421408
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push 0
push Ordinal_1
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ecx, dword [esi]
mov dword [ecx + 0x28], eax
mov eax, dword [esi]
cmp dword [eax + 0x28], 0xffffffff
jne 0x4214cf
mov ecx, dword [eax + 0x20]
mov eax, dword [eax + 0x24]
add dword [ebp - 0x1005c], ecx
mov esi, dword [ebp - 0x10064]
push 1
push 0
push eax
push ecx
adc esi, eax
push edi
mov dword [ebp - 0x10064], esi
call dword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
cmp dword [ebx + 0x44], 0
je 0x421685
mov ecx, dword [ebx]
xorps xmm0, xmm0
movlpd qword [ebp - 0x1009c], xmm0
mov eax, dword [ecx + 0x20]
mov dword [ebp - 0x100bc], eax
mov eax, dword [ecx + 0x24]
mov ecx, dword [ebx + 0x44]
mov dword [ebp - 0x100b8], eax
mov eax, dword [ebp - 0x1005c]
mov dword [ebp - 0x100c4], eax
mov dword [ebp - 0x100c0], esi
mov dword [ebp - 0x100a8], 2
test ecx, ecx
je 0x4212a7
mov eax, dword [ecx]
lea edx, [ebp - 0x1009c]
push edx
lea edx, [ebp - 0x100bc]
push edx
lea edx, [ebp - 0x100c4]
push edx
lea edx, [ebp - 0x100a8]
push edx
call dword [eax + 8]
jmp 0x421685
xor edi, edi
lea eax, [ebp - 0x10010]
push 0x10000
push edi
push eax
mov dword [ebp - 0x10098], edi
call fcn.004fb2d0
add esp, 0xc
nop dword [eax]
push 0
lea eax, [ebp - 0x10074]
mov dword [ebp - 0x10074], 0
push eax
push 0x10000
lea eax, [ebp - 0x10010]
push eax
mov eax, dword [esi]
push dword [eax + 0x28]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x42162b
mov edx, dword [ebp - 0x10074]
test edx, edx
je 0x42162b
mov eax, dword [ebx]
cmp byte [eax + 0x18], 0
jne 0x42162b
mov edi, dword [ebp - 0x10080]
xor esi, esi
push 0
lea eax, [ebp - 0x100a0]
mov dword [ebp - 0x100a0], 0
push eax
push edx
lea eax, [ebp - 0x10010]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov edx, dword [ebp - 0x10074]
test eax, eax
je 0x421588
mov ecx, dword [ebp - 0x100a0]
test ecx, ecx
je 0x421588
mov eax, dword [ebx]
cmp byte [eax + 0x18], 0
jne 0x421588
add esi, ecx
cmp esi, edx
jb 0x421544
mov edi, dword [ebp - 0x10098]
add edi, edx
cmp dword [ebx + 0x44], 0
mov dword [ebp - 0x10098], edi
je 0x42160d
mov ecx, dword [ebx]
xorps xmm0, xmm0
movlpd qword [ebp - 0x100cc], xmm0
mov eax, dword [ecx + 0x20]
mov dword [ebp - 0x1008c], eax
mov eax, dword [ecx + 0x24]
xor ecx, ecx
mov dword [ebp - 0x10088], eax
mov eax, edi
add eax, dword [ebp - 0x1005c]
mov dword [ebp - 0x10094], eax
adc ecx, dword [ebp - 0x10064]
mov dword [ebp - 0x10090], ecx
mov ecx, dword [ebx + 0x44]
mov dword [ebp - 0x10078], 2
test ecx, ecx
je 0x4212a7
mov eax, dword [ecx]
lea edx, [ebp - 0x100cc]
push edx
lea edx, [ebp - 0x1008c]
push edx
lea edx, [ebp - 0x10094]
push edx
lea edx, [ebp - 0x10078]
push edx
call dword [eax + 8]
mov esi, dword [ebp - 0x1006c]
xor ecx, ecx
mov eax, dword [esi]
cmp ecx, dword [eax + 0x24]
jb 0x4214f0
ja 0x42162b
cmp edi, dword [eax + 0x20]
jb 0x4214f0
mov eax, dword [esi]
push dword [eax + 0x28]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esi]
mov dword [eax + 0x28], 0xffffffff
mov ecx, dword [esi]
xor esi, esi
mov edx, dword [ecx + 0x20]
mov eax, dword [ecx + 0x24]
cmp edi, edx
jne 0x421679
cmp esi, eax
mov esi, dword [ebp - 0x10064]
jne 0x42167f
add dword [ebp - 0x1005c], edx
adc esi, eax
cmp dword [ecx + 0x40], 8
lea eax, [ecx + 0x2c]
mov dword [ebp - 0x10064], esi
jb 0x421670
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
jmp 0x42167f
mov esi, dword [ebp - 0x10064]
mov edi, dword [ebp - 0x10080]
mov ecx, dword [ebx]
mov edx, dword [ebp - 0x10060]
inc edx
mov dword [ebp - 0x10060], edx
mov eax, dword [ecx + 0x58]
sub eax, dword [ecx + 0x54]
sar eax, 2
cmp edx, eax
jb 0x4213e5
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x1005c]
cmp ecx, dword [eax + 0x20]
jne 0x42174b
cmp esi, dword [eax + 0x24]
jne 0x42174b
push str..ini
lea eax, [ebx + 4]
push eax
lea eax, [ebp - 0x10058]
push eax
call fcn.0040cc50
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x4216e6
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov eax, dword [ebp - 0x10044]
cmp eax, 8
jb 0x42174b
mov ecx, dword [ebp - 0x10058]
inc eax
cmp eax, 0x7fffffff
jbe 0x42170b
call fcn.004fe1ce
add eax, eax
cmp eax, 0x1000
jb 0x421742
test cl, 0x1f
je 0x42171e
call fcn.004fe1ce
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x42172a
call fcn.004fe1ce
sub ecx, eax
cmp ecx, 4
jae 0x421736
call fcn.004fe1ce
cmp ecx, 0x23
jbe 0x421740
call fcn.004fe1ce
mov ecx, eax
push ecx
call fcn.004e1bac
add esp, 4
mov eax, dword [ebx]
mov byte [eax + 0x19], 1
cmp dword [ebx + 0x44], 0
je 0x4217bf
mov ecx, dword [ebx]
xorps xmm0, xmm0
movlpd qword [ebp - 0x10068], xmm0
mov eax, dword [ecx + 0x20]
mov dword [ebp - 0x100a4], eax
mov eax, dword [ecx + 0x24]
mov dword [ebp - 0x100a0], eax
mov eax, dword [ecx + 0x20]
mov dword [ebp - 0x10084], eax
mov eax, dword [ecx + 0x24]
mov ecx, dword [ebx + 0x44]
mov dword [ebp - 0x10080], eax
mov dword [ebp - 0x1006c], 3
test ecx, ecx
jne 0x42179e
call fcn.004de9c4
lea edx, [ebp - 0x10068]
push edx
lea edx, [ebp - 0x100a4]
push edx
lea edx, [ebp - 0x10084]
push edx
lea edx, [ebp - 0x1006c]
mov eax, dword [ecx]
push edx
call dword [eax + 8]
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.004e1bb1
mov esp, ebp
pop ebp
ret