Function at 0x41bc40
Capabilities:
Check if file exists
Delete file
Get common file path
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x471a82
mov eax, dword fs:[0]
push eax
sub esp, 0x7c4
mov eax, dword [0x49ab20]
xor eax, esp
mov dword [esp + 0x7c0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49ab20]
xor eax, esp
push eax
lea eax, [esp + 0x7d8]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x800]
mov eax, dword [esp + 0x7ec]
mov edx, dword [esp + 0x804]
mov esi, dword [esp + 0x7e8]
push 0x206
mov dword [esp + 0x2c], ecx
xor ebp, ebp
mov dword [esp + 0x20], eax
lea ecx, [esp + 0x5d2]
xor eax, eax
push ebp
push ecx
mov dword [esp + 0x38], edx
mov word [esp + 0x5d8], ax
call fcn.00451660
mov edx, dword [esp + 0x800]
mov eax, dword [esp + 0x7fc]
add esp, 0xc
push ebp
push edx
push eax
lea ecx, [esp + 0x58]
mov dword [esp + 0x30], ebp
call fcn.00419ea0
push 0xa
lea ecx, [esp + 0x34]
mov dword [esp + 0x7e4], ebp
call fcn.0041a7c0
push 0x1fe
lea edx, [esp + 0x3d2]
xor ecx, ecx
push ebp
push edx
mov byte [esp + 0x7ec], 1
mov word [esp + 0x3d8], cx
call fcn.00451660
add esp, 0xc
cmp esi, ebp
jne 0x41bd4d
lea ecx, [esp + 0x30]
mov byte [esp + 0x7e0], 0
call fcn.0041abb0
lea ecx, [esp + 0x4c]
mov dword [esp + 0x7e0], 0xffffffff
call fcn.0041a0f0
xor eax, eax
jmp 0x41c132
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41be3e
test al, 0x10
je 0x41be3e
push 0x206
lea ecx, [esp + 0x1ca]
xor eax, eax
push ebp
push ecx
mov dword [esp + 0x30], 1
mov word [esp + 0x1d0], ax
call fcn.00451660
add esp, 0xc
push esi
lea edx, [esp + 0x1c8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [esp + 0x1c4]
push eax
call edi
cmp word [esp + eax*2 + 0x1c2], 0x5c
jne 0x41bdcb
lea ecx, [esp + 0x1c4]
push ecx
call edi
xor edx, edx
mov word [esp + eax*2 + 0x1c2], dx
lea eax, [esp + 0x1c4]
push 0x5c
push eax
call fcn.0045231c
add esp, 8
test eax, eax
je 0x41bdf8
lea ecx, [esp + 0x1c4]
push 0x5c
push ecx
call fcn.0045231c
add esp, 8
xor edx, edx
mov word [eax], dx
push 1
push ecx
lea eax, [esp + 0x1cc]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call fcn.00405330
lea ecx, [esp + 0x38]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push esi
mov byte [esp + 0x7f4], 2
call fcn.00405330
lea ecx, [esp + 0x5c]
mov byte [esp + 0x7f0], 1
call fcn.0041adc0
jmp 0x41bed5
push esi
lea ecx, [esp + 0x1c]
call fcn.00405330
mov bl, 3
push esi
lea ecx, [esp + 0x18]
mov byte [esp + 0x7e4], bl
call fcn.00405330
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x30], esp
push ebp
push ebp
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x30]
push eax
mov byte [esp + 0x800], 4
call fcn.0041ab30
lea ecx, [esp + 0x40]
call fcn.0041abe0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x7e0], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41bead
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x7e0], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41bed5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x5cc]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [esp + 0x5cc]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x41bef2
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x5ca], 0x5c
je 0x41bf1f
push 0x485864
lea edx, [esp + 0x5d0]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x50]
call fcn.0041a370
test eax, eax
je 0x41bd21
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x34]
xor esi, esi
mov dword [esp + 0x18], 1
cmp ebp, esi
je 0x41c0f6
push 0x206
mov eax, ebp
mov ebp, dword [ebp]
lea edx, [esp + 0x1ca]
xor ecx, ecx
push esi
push edx
lea edi, [eax + 8]
mov dword [esp + 0x28], esi
mov word [esp + 0x1d0], cx
call fcn.00451660
mov eax, dword [edi]
push 0x100
lea ecx, [esp + 0x3dc]
push ecx
push esi
push esi
push esi
push esi
push esi
push esi
push eax
call fcn.00453073
lea edx, [esp + 0x3fc]
push 0x100
push edx
call fcn.00453de8
add esp, 0x38
push str..CDG
lea eax, [esp + 0x3d0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x41c0a9
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x1c], 1
cmp ecx, esi
je 0x41c0a9
mov ebx, dword [esp + 0x28]
cmp ebx, esi
je 0x41c0a9
mov eax, dword [edi]
push ebx
lea edx, [esp + 0x1c8]
push edx
push eax
call ecx
add esp, 0xc
test eax, eax
je 0x41c0ee
mov eax, dword [edi + 4]
mov eax, dword [eax - 0xc]
lea esi, [edi + 4]
add eax, 0xfffffffc
push eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call fcn.00404ab0
push eax
mov ecx, esi
mov byte [esp + 0x7e4], 5
call fcn.00404d00
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x7e0], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41c04d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi]
push 0x100
lea ecx, [esp + 0x3d0]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
call fcn.00453073
add esp, 0x24
push ebx
lea edx, [esp + 0x3d0]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x41c098
push 0x476654
mov ecx, esi
call fcn.0040b4f0
push ebx
mov ecx, esi
call fcn.004052f0
lea eax, [esp + 0x1c4]
push eax
mov ecx, edi
call fcn.004051c0
xor esi, esi
mov edx, dword [esp + 0x24]
mov eax, dword [edi + 4]
mov ecx, dword [edi]
push edx
xor edx, edx
cmp byte [edi + 8], dl
setne dl
dec edx
push edx
push eax
push ecx
lea ecx, [esp + 0x5c]
call fcn.00419f80
test eax, eax
jne 0x41c0d0
mov dword [esp + 0x18], esi
cmp dword [esp + 0x1c], esi
je 0x41c0e4
lea eax, [esp + 0x1c4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 0x18], esi
je 0x41c0f6
inc dword [esp + 0x14]
cmp ebp, esi
jne 0x41bf4f
lea ecx, [esp + 0x4c]
call fcn.00419ee0
cmp dword [esp + 0x14], esi
jne 0x41c109
mov dword [esp + 0x18], esi
lea ecx, [esp + 0x30]
mov byte [esp + 0x7e0], 0
call fcn.0041abb0
lea ecx, [esp + 0x4c]
mov dword [esp + 0x7e0], 0xffffffff
call fcn.0041a0f0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x7d8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x7c0]
xor ecx, esp
call fcn.004522e0
add esp, 0x7d0
ret