Function at 0x416a80
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4720e0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x4878d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
test edi, edi
je 0x4170b7
mov eax, dword [edi + 0x1c]
test eax, eax
jne 0x416daf
mov eax, dword [ebx + 0x530]
test eax, eax
je 0x416ad2
cmp edi, dword [eax + 0x18]
jne 0x416ad2
mov esi, ebx
call fcn.00418990
mov eax, dword [ebx + 0x534]
xor esi, esi
cmp eax, esi
je 0x416ae9
cmp edi, dword [eax + 0x18]
jne 0x416ae9
mov dword [ebx + 0x534], esi
cmp edi, dword [ebx + 0x538]
je 0x416d3b
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
mov dword [ebp - 0x14], esi
sar eax, 2
cmp esi, eax
jge 0x416d41
jb 0x416b10
call fcn.00459e39
mov eax, dword [edi + 0xc]
mov ecx, dword [eax + esi*4]
mov ecx, dword [ecx + 0x2c]
cmp dword [ecx - 0xc], 0
je 0x416d08
mov edx, dword [edi + 0x10]
sub edx, eax
sar edx, 2
cmp esi, edx
jb 0x416b34
call fcn.00459e39
mov eax, dword [edi + 0xc]
mov eax, dword [eax + esi*4]
mov eax, dword [eax + 0x28]
sub eax, 0x10
call fcn.00404c80
lea ecx, [eax + 0x10]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebx + 0x598]
push eax
push 0
push ecx
push 0x47c720
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
sar ecx, 2
cmp esi, ecx
jb 0x416b79
call fcn.00459e39
mov edx, dword [edi + 0xc]
mov eax, dword [edx + esi*4]
lea ecx, [eax + 0x2c]
mov eax, dword [ecx]
sub eax, 0x10
cmp dword [eax + 0xc], 1
mov dword [ebp - 0x10], ecx
jle 0x416b9d
mov eax, dword [eax + 4]
push eax
push ecx
call fcn.00404950
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebx + 0x528]
mov eax, dword [eax + 0x20]
mov edx, dword [ecx]
mov dword [ebp - 0x1c], edx
test eax, eax
je 0x416bca
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], eax
push dword [ebp - 0x10]
push dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx]
call dword [eax + 0x20]
mov dword [ebp - 0x10], eax
cmp dword [ebp + 8], 0
je 0x416c9a
fld dword [edi + 0x30]
call fcn.0045cdf0
cmp eax, 0x64
jne 0x416c9a
mov eax, dword [ebx + 0x528]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 0x528]
mov ecx, dword [eax + 0x34]
sub ecx, dword [eax + 0x30]
add eax, 0x24
mov eax, 0x38e38e39
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], 0
test eax, eax
jle 0x416c8a
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebx + 0x528]
push ecx
add eax, 0x24
call fcn.00404770
mov esi, dword [edi + 0x2c]
mov ecx, eax
lea ebx, [ebx]
mov dl, byte [ecx]
cmp dl, byte [esi]
jne 0x416c60
test dl, dl
je 0x416c5c
mov dl, byte [ecx + 1]
cmp dl, byte [esi + 1]
jne 0x416c60
add ecx, 2
add esi, 2
test dl, dl
jne 0x416c40
xor ecx, ecx
jmp 0x416c65
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
jne 0x416c7b
mov edx, dword [eax + 0x2c]
cmp edx, dword [eax + 0x30]
jne 0x416c7b
add eax, 0x38
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x10]
inc eax
cmp eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
jl 0x416c23
mov esi, dword [ebp - 0x14]
mov eax, dword [ebx + 0x528]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
sar ecx, 2
cmp esi, ecx
jb 0x416cac
call fcn.00459e39
mov edx, dword [edi + 0xc]
mov ecx, dword [edx + esi*4]
mov eax, dword [ecx + 0x2c]
mov edx, dword [eax - 8]
mov dword [ebp - 0x1c], ecx
test eax, eax
je 0x416cd0
push edx
push eax
call fcn.0045b587
add esp, 8
test eax, eax
jl 0x416d31
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x2c]
cmp eax, dword [edx - 8]
jg 0x416d31
mov dword [edx - 0xc], eax
mov ecx, dword [ecx + 0x2c]
mov byte [eax + ecx], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x416d08
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp edi, dword [ebx + 0x524]
jne 0x416d1a
mov dword [ebx + 0x524], 0
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
inc esi
sar eax, 2
cmp esi, eax
mov dword [ebp - 0x14], esi
jl 0x416b09
jmp 0x416d41
push 0x80070057
call fcn.00405910
mov dword [ebx + 0x538], esi
mov eax, dword [edi + 0x24]
sub eax, 0x10
call fcn.00404c80
add eax, 0x10
mov dword [ebp + 8], eax
push 0x47b540
push 0x47b54c
lea ecx, [ebp + 8]
push ecx
mov dword [ebp - 4], 1
call fcn.00404320
push 0x47b550
push 0x47b55c
lea edx, [ebp + 8]
push edx
call fcn.00404320
mov eax, dword [ebx + 0x598]
mov esi, dword [ebp + 8]
push eax
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [ebx + 0x520]
push edi
call fcn.00424190
mov dword [ebp - 4], 0xffffffff
lea eax, [esi - 0x10]
jmp 0x41709e
cmp eax, 1
jne 0x4170b7
mov eax, dword [ebx + 0x530]
test eax, eax
je 0x416dcd
cmp edi, eax
jne 0x416dcd
mov esi, ebx
call fcn.00418990
mov eax, dword [ebx + 0x534]
test eax, eax
je 0x416de5
cmp edi, eax
jne 0x416de5
mov dword [ebx + 0x534], 0
mov ecx, dword [edi + 0x2c]
mov eax, dword [ecx - 0xc]
lea esi, [edi + 0x2c]
test eax, eax
je 0x416eef
mov eax, ecx
sub eax, 0x10
cmp dword [eax + 0xc], 1
jle 0x416e0b
mov edx, dword [eax + 4]
push edx
push esi
call fcn.00404950
mov esi, dword [esi]
mov eax, dword [ebx + 0x528]
push esi
call fcn.00424d70
cmp dword [ebp + 8], 0
je 0x416ee7
fld dword [edi + 0x30]
call fcn.0045cdf0
cmp eax, 0x64
jne 0x416ee7
mov eax, dword [ebx + 0x528]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 0x528]
mov ecx, dword [eax + 0x34]
sub ecx, dword [eax + 0x30]
add eax, 0x24
mov eax, 0x38e38e39
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x20], eax
mov dword [ebp + 8], 0
test eax, eax
jle 0x416ed7
mov ecx, dword [ebp + 8]
mov eax, dword [ebx + 0x528]
push ecx
add eax, 0x24
call fcn.00404770
mov esi, dword [edi + 0x2c]
mov ecx, eax
lea esp, [esp]
mov dl, byte [ecx]
cmp dl, byte [esi]
jne 0x416eb0
test dl, dl
je 0x416eac
mov dl, byte [ecx + 1]
cmp dl, byte [esi + 1]
jne 0x416eb0
add ecx, 2
add esi, 2
test dl, dl
jne 0x416e90
xor ecx, ecx
jmp 0x416eb5
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
jne 0x416ecb
mov edx, dword [eax + 0x2c]
cmp edx, dword [eax + 0x30]
jne 0x416ecb
add eax, 0x38
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp + 8]
inc eax
cmp eax, dword [ebp - 0x20]
mov dword [ebp + 8], eax
jl 0x416e72
mov eax, dword [ebx + 0x528]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea esi, [edi + 0x2c]
call fcn.0041ddb0
mov eax, dword [edi + 0x18]
mov ecx, dword [eax + 0x10]
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 0x24]
and ecx, 0xfffffffc
sub eax, 0x10
cmp ecx, 4
jne 0x416f8e
call fcn.00404c80
add eax, 0x10
mov dword [ebp + 8], eax
push 0x47b540
push 0x47b54c
lea edx, [ebp + 8]
push edx
mov dword [ebp - 4], 2
call fcn.00404320
push 0x47b550
push 0x47b55c
lea eax, [ebp + 8]
push eax
call fcn.00404320
mov eax, dword [ebx + 0x598]
mov esi, dword [ebp + 8]
push eax
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov eax, dword [edi + 0x18]
cmp eax, dword [ebx + 0x538]
jne 0x416f74
mov dword [ebx + 0x538], 0
mov edi, dword [edi + 0x18]
jmp 0x416d94
cmp eax, dword [ebx + 0x524]
jne 0x416f86
mov dword [ebx + 0x524], 0
mov edi, dword [edi + 0x18]
jmp 0x416d94
call fcn.00404c80
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 3
mov eax, dword [edi + 0x24]
sub eax, 0x10
call fcn.00404c80
add eax, 0x10
mov dword [ebp + 8], eax
mov byte [ebp - 4], 4
mov eax, dword [edi + 0x28]
sub eax, 0x10
call fcn.00404c80
lea esi, [eax + 0x10]
mov dword [ebp - 0x20], esi
push 0x47b540
push 0x47b54c
lea ecx, [ebp - 0x10]
push ecx
mov byte [ebp - 4], 5
call fcn.00404320
push 0x47b550
push 0x47b55c
lea edx, [ebp - 0x10]
push edx
call fcn.00404320
push 0x47b540
push 0x47b54c
lea eax, [ebp + 8]
push eax
call fcn.00404320
push 0x47b550
push 0x47b55c
lea ecx, [ebp + 8]
push ecx
call fcn.00404320
mov eax, dword [ebx + 0x598]
mov edx, dword [ebp + 8]
push eax
mov eax, dword [ebp - 0x10]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov eax, dword [ebx + 0x598]
push eax
push 0
push esi
push 0x47c720
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [ebx + 0x520]
push edi
call fcn.00424190
lea eax, [esi - 0x10]
mov byte [ebp - 4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41706e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 3
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417091
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4170b7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4