Function at 0x421470
Capabilities:
Check if file exists
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54c7b2
mov eax, dword fs:[0]
push eax
sub esp, 0x454
mov eax, dword [0x60c9c8]
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 eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x428], eax
mov eax, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x43c], edi
mov dword [ebp - 0x438], ebx
cmp eax, 0x11
jne 0x4219e7
xor eax, eax
lea ecx, [ebp - 0x460]
mov dword [0x60e200], eax
mov dword [0x60e1fc], eax
call fcn.0043f9a5
mov ecx, dword [ebp - 0x428]
push 0x5c
push ecx
mov dword [ebp - 4], 0
call fcn.0053309c
mov edx, dword [edi]
mov ecx, dword [ebx + 8]
add esp, 8
push edx
add eax, 2
push eax
mov eax, dword [ebx]
push eax
push ecx
mov ecx, esi
call fcn.00414d70
mov ebx, eax
mov dword [ebp - 0x428], ebx
test ebx, ebx
je 0x421840
call fcn.0043e2f8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x421535
push 0x80004005
call fcn.00402a80
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x424], eax
mov byte [ebp - 4], 1
call fcn.0043e2f8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x421565
push 0x80004005
call fcn.00402a80
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x430], eax
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x41e]
push edx
mov byte [ebp - 4], 2
mov word [ebp - 0x420], cx
call fcn.00531fb0
add esp, 0xc
cmp dword [ebx + 0x20c], 0
je 0x42163b
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x216]
push ecx
mov word [ebp - 0x218], ax
call fcn.00531fb0
mov edx, dword [edi]
push edx
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00532f33
lea ecx, [ebp - 0x218]
push 0x104
push ecx
call fcn.005330ca
lea eax, [ebp + eax*2 - 0x218]
lea edx, [ebp - 0x218]
add esp, 0x20
cmp eax, edx
je 0x421618
lea ebx, [ebx]
cmp word [eax], 0x5c
je 0x421615
sub eax, 2
lea ecx, [ebp - 0x218]
cmp eax, ecx
jne 0x421600
jmp 0x421618
add eax, 2
push eax
lea edx, [ebp - 0x420]
push 0x104
push edx
call fcn.00532f33
lea eax, [ebp - 0x420]
add esp, 0xc
mov dword [ebp - 0x42c], eax
jmp 0x421647
lea ecx, [ebx + 0x620]
mov dword [ebp - 0x42c], ecx
mov edx, dword [ebp - 0x42c]
push edx
add ebx, 0x418
push ebx
lea eax, [ebp - 0x424]
push 0x55d250
push eax
call fcn.004047a0
add esp, 0x10
lea ecx, [ebp - 0x424]
push ecx
lea ecx, [ebp - 0x430]
call fcn.004034d0
mov edi, dword [ebp - 0x424]
push 0
push edi
lea ecx, [ebp - 0x460]
call fcn.0043fa4c
lea ecx, [ebp - 0x460]
mov dword [ebp - 0x434], eax
call fcn.0043f52f
cmp dword [ebp - 0x434], 0
je case.default.0x4216c7
mov edx, dword [ebp - 0x428]
mov eax, dword [edx + 0xc38]
mov dword [0x60e1f8], eax
cmp eax, 3
ja case.default.0x4216c7
jmp dword [eax*4 + 0x421c54]
push 0x20
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x421767
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x421707
cmp eax, 0x4c8
jne 0x42176e
push edi
push 0x104
push 0x60dff0
call fcn.00532f33
mov eax, dword [ebp - 0x42c]
add esp, 0xc
push eax
push ebx
lea ecx, [ebp - 0x434]
push ecx
mov ecx, esi
call fcn.00419bc0
push eax
lea ecx, [ebp - 0x424]
mov byte [ebp - 4], 3
call fcn.004034d0
lea ecx, [ebp - 0x434]
mov byte [ebp - 4], 2
call fcn.00402e70
mov edx, dword [ebp - 0x438]
mov eax, 1
mov dword [0x60e200], eax
mov dword [edx + 0x14], eax
jmp 0x4218c5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x428]
cmp dword [eax + 0xc40], 1
je case.default.0x4216c7
cmp dword [esi + 0xc], 0
je case.default.0x4216c7
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je case.default.0x4216c7
push edi
push 0x104
push 0x60dff0
call fcn.00532f33
mov ecx, dword [ebp - 0x42c]
add esp, 0xc
push ecx
push ebx
lea edx, [ebp - 0x444]
push edx
mov ecx, esi
call fcn.00419bc0
push eax
lea ecx, [ebp - 0x424]
mov byte [ebp - 4], 4
call fcn.004034d0
lea ecx, [ebp - 0x444]
mov byte [ebp - 4], 2
call fcn.00402e70
mov ecx, dword [ebp - 0x438]
mov eax, 1
mov dword [0x60e200], eax
mov dword [ecx + 0x14], eax
jmp 0x4218c5
mov eax, dword [ebp - 0x430]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x421820
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421840
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
lea ecx, [ebp - 0x460]
mov dword [ebp - 4], 0xffffffff
call fcn.0043f9d7
mov eax, 2
jmp 0x421c36
push edi
push 0x104
push 0x60dff0
call fcn.00532f33
mov eax, dword [ebp - 0x42c]
add esp, 0xc
push eax
push ebx
lea ecx, [ebp - 0x440]
push ecx
mov ecx, esi
call fcn.00419bc0
push eax
lea ecx, [ebp - 0x424]
mov byte [ebp - 4], 5
call fcn.004034d0
mov eax, dword [ebp - 0x440]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4218bb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [0x60e1fc], 1
mov edi, dword [ebp - 0x424]
push 0
push ebx
mov ecx, esi
call fcn.004197a0
mov ebx, dword [ebp - 0x428]
cmp word [ebx + 0xa30], 0
lea eax, [ebx + 0xa30]
je 0x4218fe
push eax
lea ecx, [ebx + 0x828]
push ecx
lea ecx, [esi + 0xd9b8]
call fcn.0042dea0
mov eax, dword [ebp - 0x43c]
mov edx, dword [ebx + 0xc40]
push edi
add eax, 0x12
push 0x104
push eax
mov dword [0x60dfec], edx
call fcn.00532f33
mov eax, dword [esi + 0x140]
mov ecx, dword [ebx + 0xc4c]
add esp, 0xc
mov dword [0x60dfe8], ecx
test eax, eax
je 0x421975
mov edx, dword [eax + 0x20]
push edx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x421975
mov eax, dword [ebp - 0x430]
mov ecx, dword [esi + 0x140]
push eax
call fcn.00429240
mov esi, dword [esi + 0x140]
test esi, esi
je 0x421965
mov esi, dword [esi + 0x20]
push 0
push 0
push 0x8001
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, dword [ebx + 0xc50]
test ebx, ebx
je 0x421985
mov dword [0x60dfe4], ebx
mov eax, dword [ebp - 0x430]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4219ab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4219cb
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
lea ecx, [ebp - 0x460]
mov dword [ebp - 4], 0xffffffff
call fcn.0043f9d7
mov eax, 1
jmp 0x421c36
cmp eax, 0x13
jne 0x421c34
cmp dword [0x60e1fc], 0
je 0x421b7d
mov eax, dword [0x60dfe4]
test eax, eax
je 0x421a58
movzx ecx, byte [eax + 0x168]
push ecx
lea edx, [eax + 0x164]
push edx
mov edx, dword [edi]
lea ecx, [eax + 0xe4]
push ecx
add eax, 0x64
push eax
push edx
push 0x60dff0
call fcn.004041d0
add esp, 0x18
test eax, eax
jns 0x421a45
mov eax, 3
mov dword [0x60dfe4], 0
jmp 0x421a65
neg eax
sbb eax, eax
add eax, 2
mov dword [0x60dfe4], 0
jmp 0x421a65
mov eax, dword [edi]
push eax
push 0x60dff0
call fcn.0041a740
mov ecx, dword [0x60e1f8]
cmp ecx, 2
jne 0x421a99
cmp eax, 3
je 0x421aa7
mov edx, dword [edi]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [0x60dfec]
push eax
push 0x60dff0
lea ecx, [esi + 0xd9b8]
call fcn.0042c670
jmp 0x421bcf
cmp ecx, 3
jne 0x421a75
cmp eax, 2
je 0x421aa7
cmp eax, ecx
jne 0x421a75
push 0x20
push 0x60dff0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push 0x60dff0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x421b15
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x421aec
cmp eax, 0x4c8
jne 0x421bcf
mov dword [ebx + 0x14], 1
mov ecx, dword [edi]
push 0x60dff0
push ecx
mov ecx, esi
call fcn.0041ead0
mov eax, dword [0x60dfec]
cmp eax, 1
je 0x421bcf
jmp 0x421a83
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x60dfec], 1
je 0x421b55
cmp dword [esi + 0xc], 0
je 0x421b55
push 0x60dff0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x421b55
mov dword [ebx + 0x14], 1
mov edx, dword [edi]
push 0x60dff0
push edx
mov ecx, esi
call fcn.0041ead0
jmp 0x421a7e
push 0x60dff0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [edi]
push 0x60dff0
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov eax, dword [0x60dfec]
cmp eax, 1
je 0x421bcf
jmp 0x421a83
cmp dword [0x60e200], 0
je 0x421ba7
mov ecx, dword [edi]
push 0x60dff0
push ecx
mov ecx, esi
call fcn.0041ead0
mov eax, dword [0x60dfec]
cmp eax, 1
je 0x421bc0
push eax
push 0x60dff0
jmp 0x421bb5
mov eax, dword [0x60dfec]
cmp eax, 1
je 0x421bc0
mov edx, dword [edi]
push eax
push edx
lea ecx, [esi + 0xd9b8]
call fcn.0042c670
mov eax, dword [0x60dfe8]
mov ecx, dword [edi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
inc dword [ebx + 0xc]
mov edx, dword [ebx + 0xc]
mov edi, dword [ebx + 0x20]
cmp edx, edi
ja 0x421c34
mov ecx, dword [ebx + 0x18]
mov eax, dword [ebx + 0x1c]
sub eax, ecx
imul eax, edx
xor edx, edx
div edi
add eax, ecx
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x140]
test eax, eax
je 0x421c34
mov edx, dword [eax + 0x20]
push edx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x421c34
mov eax, dword [ebx + 0x10]
mov ecx, dword [esi + 0x140]
push eax
call fcn.00429060
mov esi, dword [esi + 0x140]
test esi, esi
je 0x421c24
mov esi, dword [esi + 0x20]
push 0
push 0
push 0x8001
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
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.00531f97
mov esp, ebp
pop ebp
ret 0x10