Function at 0x456940
Capabilities:
Check if file exists
Delete file
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4940c0
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x4c51d0]
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
lea esi, [ebp - 0x80]
call fcn.0040e710
push eax
lea eax, [ebp - 0x74]
push eax
mov ebx, 0x4adf9c
mov dword [ebp - 4], 0
call fcn.00406750
add esp, 8
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x80]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4569af
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x74]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor ebx, ebx
mov eax, 7
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x40], eax
xor edx, edx
xor eax, eax
mov dword [ebp - 0x60], ebx
mov word [ebp - 0x70], dx
mov dword [ebp - 0x44], ebx
mov word [ebp - 0x54], ax
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], 0xbb8
mov dword [ebp - 0x2c], 0xa8c0
mov dword [ebp - 0x28], 0x194
mov dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x18], bl
push 0x4adfb8
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 3
call fcn.00401c40
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x74]
mov edi, dword [ebp - 0x7c]
mov ecx, eax
mov byte [ebp - 0x18], bl
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x456a26
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x54]
call fcn.0040e520
push 0x1f4
push edi
lea ecx, [ebp - 0x70]
call fcn.0046a6f0
test al, al
je 0x456a71
lea ecx, [ebp - 0x70]
call fcn.0046a0c0
test al, al
jne 0x456a61
mov byte [ebp - 0x18], bl
jmp 0x456a71
lea ecx, [ebp - 0x70]
call fcn.0046a2f0
test al, al
setne cl
mov byte [ebp - 0x18], cl
mov eax, dword [ebp - 0x74]
add eax, 0xfffffff0
push eax
call fcn.004015d0
lea edi, [eax + 0x10]
add esp, 4
mov dword [ebp - 0x80], edi
lea esi, [ebp - 0x78]
lea eax, [ebp - 0x80]
mov byte [ebp - 4], 5
call fcn.0046ce40
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x456aae
test al, 0x10
jne 0x456aae
mov esi, 1
jmp 0x456ab0
xor esi, esi
mov eax, dword [ebp - 0x78]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x456acf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, ebx
je 0x456bd5
push 0x4a976c
lea ecx, [ebp - 0x78]
call fcn.00401c40
push 0x4ae028
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 6
call fcn.00401c40
push edi
or ebx, 0xffffffff
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x456b1b
mov ecx, dword [ebp - 0x78]
mov edx, dword [ebp - 0x84]
push edi
push ebx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ebx, eax
mov eax, dword [ebp - 0x84]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x456b3d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x78]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x456b60
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [ebp - 4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x456b80
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 - 0x7c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x456ba3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [ebp - 0x70]
call fcn.0046a050
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x74]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x456bd1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
jmp 0x456c4b
lea eax, [edi - 0x10]
mov byte [ebp - 4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x456bf5
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 - 0x7c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x456c18
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [ebp - 0x70]
call fcn.0046a050
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x74]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x456c46
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0xfffffffe
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.0046e5d5
mov esp, ebp
pop ebp
ret