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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x521776
mov eax, dword fs:[0]
push eax
mov eax, 0x100c0
call fcn.004e3560
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 0x4219f1
mov ecx, dword [ebp - 0x1006c]
mov dword [ebp - 0x10080], ecx
mov ecx, dword [ebp - 0x10070]
mov dword [ebp - 0x10074], ecx
cmp eax, 1
jne 0x421204
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x54]
mov ecx, dword [ecx + 0x58]
cmp eax, ecx
je 0x421204
mov edx, dword [eax]
cmp dword [edx], 0
jne 0x42150a
add eax, 4
cmp eax, ecx
jne 0x4211f2
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 0x42141f
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.0041f330
push eax
lea eax, [ebp - 0x10058]
mov dword [ebp - 4], 0
push str.Slice
push eax
call fcn.00422790
add esp, 0x18
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1002c]
cmp eax, 8
jb 0x4212c4
mov ecx, dword [ebp - 0x10040]
inc eax
cmp eax, 0x7fffffff
ja 0x4219a6
add eax, eax
cmp eax, 0x1000
jb 0x4212bb
test cl, 0x1f
jne 0x4219a6
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x4219a6
sub ecx, eax
cmp ecx, 4
jb 0x4219a6
cmp ecx, 0x23
ja 0x4219a6
mov ecx, eax
push ecx
call fcn.004e1ddf
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.00424950
mov eax, dword [ebp - 0x10014]
cmp eax, 8
jb 0x421383
mov ecx, dword [ebp - 0x10028]
inc eax
cmp eax, 0x7fffffff
ja 0x4219a6
add eax, eax
cmp eax, 0x1000
jb 0x42137a
test cl, 0x1f
jne 0x4219a6
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x4219a6
sub ecx, eax
cmp ecx, 4
jb 0x4219a6
cmp ecx, 0x23
ja 0x4219a6
mov ecx, eax
push ecx
call fcn.004e1ddf
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 0x421412
lea ecx, [eax + 1]
mov eax, dword [ebp - 0x10058]
cmp ecx, 0x7fffffff
ja 0x4219a6
add ecx, ecx
cmp ecx, 0x1000
jb 0x4213fd
test al, 0x1f
jne 0x4219a6
mov ecx, dword [eax - 4]
cmp ecx, eax
jae 0x4219a6
sub eax, ecx
cmp eax, 4
jb 0x4219a6
cmp eax, 0x23
ja 0x4219a6
mov eax, ecx
push eax
call fcn.004e1ddf
mov edx, dword [ebp - 0x1005c]
add esp, 4
mov ecx, dword [ebp - 0x10064]
add esi, 4
cmp esi, edi
jne 0x421237
jmp 0x421437
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 0x4214c3
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 0x421547
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 0x4214df
cmp dword [eax + 0x24], edx
je 0x42156c
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 0x4211e1
jmp 0x4219f1
cmp dword [ebx + 0x44], 0
je 0x421a5f
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 0x42154c
call fcn.004debf7
lea edx, [ebp - 0x1007c]
push edx
lea edx, [ebp - 0x10094]
push edx
lea edx, [ebp - 0x1008c]
push edx
lea edx, [ebp - 0x10060]
jmp 0x421a59
cmp dword [ebx + 0x18], 8
lea eax, [ebx + 4]
jb 0x421577
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 0x421647
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x50
jne 0x4215e1
cmp dword [ebx + 0x18], 8
lea eax, [ebx + 4]
jb 0x4215b9
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 0x421647
call esi
cmp dword [ebx + 0x44], 0
je 0x421a5f
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 0x421621
call fcn.004debf7
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 0x4219f1
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 0x421945
mov dword [ebp - 0x10064], esi
cmp byte [ecx + 0x18], 0
jne 0x421945
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 0x4216a8
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
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 0x42176f
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 0x421925
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 0x421547
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 0x421925
xor edi, edi
lea eax, [ebp - 0x10010]
push 0x10000
push edi
push eax
mov dword [ebp - 0x10098], edi
call fcn.004fb530
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 0x4218cb
mov edx, dword [ebp - 0x10074]
test edx, edx
je 0x4218cb
mov eax, dword [ebx]
cmp byte [eax + 0x18], 0
jne 0x4218cb
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 0x421828
mov ecx, dword [ebp - 0x100a0]
test ecx, ecx
je 0x421828
mov eax, dword [ebx]
cmp byte [eax + 0x18], 0
jne 0x421828
add esi, ecx
cmp esi, edx
jb 0x4217e4
mov edi, dword [ebp - 0x10098]
add edi, edx
cmp dword [ebx + 0x44], 0
mov dword [ebp - 0x10098], edi
je 0x4218ad
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 0x421547
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 0x421790
ja 0x4218cb
cmp edi, dword [eax + 0x20]
jb 0x421790
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 0x421919
cmp esi, eax
mov esi, dword [ebp - 0x10064]
jne 0x42191f
add dword [ebp - 0x1005c], edx
adc esi, eax
cmp dword [ecx + 0x40], 8
lea eax, [ecx + 0x2c]
mov dword [ebp - 0x10064], esi
jb 0x421910
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x42191f
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 0x421685
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x1005c]
cmp ecx, dword [eax + 0x20]
jne 0x4219eb
cmp esi, dword [eax + 0x24]
jne 0x4219eb
push str..ini
lea eax, [ebx + 4]
push eax
lea eax, [ebp - 0x10058]
push eax
call fcn.0040ccf0
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x421986
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x10044]
cmp eax, 8
jb 0x4219eb
mov ecx, dword [ebp - 0x10058]
inc eax
cmp eax, 0x7fffffff
jbe 0x4219ab
call fcn.004fe3de
add eax, eax
cmp eax, 0x1000
jb 0x4219e2
test cl, 0x1f
je 0x4219be
call fcn.004fe3de
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x4219ca
call fcn.004fe3de
sub ecx, eax
cmp ecx, 4
jae 0x4219d6
call fcn.004fe3de
cmp ecx, 0x23
jbe 0x4219e0
call fcn.004fe3de
mov ecx, eax
push ecx
call fcn.004e1ddf
add esp, 4
mov eax, dword [ebx]
mov byte [eax + 0x19], 1
cmp dword [ebx + 0x44], 0
je 0x421a5f
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 0x421a3e
call fcn.004debf7
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.004e1de4
mov esp, ebp
pop ebp
ret