Function at 0x405910
Capabilities:
Delete file
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x42331f
mov eax, dword fs:[0]
push eax
sub esp, 0x4ac
mov eax, dword [0x42b1ec]
xor eax, esp
mov dword [esp + 0x4a8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42b1ec]
xor eax, esp
push eax
lea eax, [esp + 0x4c0]
mov dword fs:[0], eax
mov eax, dword [esp + 0x4f0]
mov ebp, dword [esp + 0x4d0]
mov dword [esp + 0x18], eax
xor eax, eax
mov edi, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x4c8], eax
mov edx, dword [0x42c98c]
mov eax, dword [edx + 0xc]
mov ecx, 0x42c98c
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
cmp byte [esp + 0x4f4], 0
mov byte [esp + 0x4c8], 1
je 0x405b26
lea ecx, [esp + 0x4d4]
push ecx
mov ebx, 0x426680
lea esi, [esp + 0x78]
call fcn.00408c10
add esp, 4
push eax
mov ebx, edi
lea esi, [esp + 0x40]
mov byte [esp + 0x4cc], 2
call fcn.00408c10
add esp, 4
push eax
mov ebx, 0x426cc0
lea esi, [esp + 0x5c]
mov byte [esp + 0x4cc], 3
call fcn.00408c10
add esp, 4
mov ebx, dword [esp + 0x18]
push eax
lea esi, [esp + 0x94]
mov byte [esp + 0x4cc], 4
call fcn.00408c10
mov ebx, 8
add esp, 4
cmp dword [esp + 0x70], ebx
jb 0x405a17
mov edx, dword [esp + 0x5c]
push edx
call fcn.0040ce24
add esp, 4
xor esi, esi
xor eax, eax
mov dword [esp + 0x70], 7
mov dword [esp + 0x6c], esi
mov word [esp + 0x5c], ax
cmp dword [esp + 0x54], ebx
jb 0x405a3f
mov ecx, dword [esp + 0x40]
push ecx
call fcn.0040ce24
add esp, 4
xor edx, edx
mov byte [esp + 0x4c8], 1
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], esi
mov word [esp + 0x40], dx
cmp dword [esp + 0x8c], ebx
jb 0x405a70
mov eax, dword [esp + 0x78]
push eax
call fcn.0040ce24
add esp, 4
mov eax, dword [esp + 0x94]
cmp dword [esp + 0xa8], ebx
jae 0x405a87
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 0xb0]
push 0x104
push ecx
call fcn.0040e956
mov eax, dword [esp + 0xb0]
xor edx, edx
mov word [esp + eax*2 + 0xb8], dx
xor ecx, ecx
mov word [esp + eax*2 + 0xba], cx
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
add esp, 0xc
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov word [esp + 0x38], ax
lea ecx, [esp + 0x1c]
lea edx, [esp + 0xac]
mov eax, 0x614
push ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], 3
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], esi
mov word [esp + 0x30], ax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
cmp dword [esp + 0xa8], ebx
jb 0x405b2b
mov edx, dword [esp + 0x94]
push edx
call fcn.0040ce24
add esp, 4
jmp 0x405b2b
mov ebx, 8
mov eax, dword [esp + 0x4d8]
cmp dword [esp + 0x4ec], ebx
jae 0x405b42
lea eax, [esp + 0x4d8]
lea ecx, [esp + 0x2b4]
push ecx
push 0
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x405b97
lea edx, [esp + 0x2b4]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0x2b4]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405b70
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x2b4]
mov ebx, eax
push ecx
lea eax, [esp + 0x18]
call fcn.004083f0
jmp 0x405c29
test edi, edi
jne 0x405b9f
xor eax, eax
jmp 0x405bb3
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405ba4
sub eax, edx
sar eax, 1
mov ebx, eax
push edi
lea eax, [esp + 0x18]
call fcn.004083f0
lea ecx, [esp + 0x74]
call fcn.00405860
mov edi, 8
mov byte [esp + 0x4c8], 5
cmp dword [eax + 0x18], edi
jb 0x405bdf
mov edx, dword [eax + 4]
jmp 0x405be2
lea edx, [eax + 4]
test edx, edx
jne 0x405bea
xor eax, eax
jmp 0x405bff
mov eax, edx
lea esi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405bf0
sub eax, esi
sar eax, 1
push eax
push edx
lea edx, [esp + 0x1c]
push edx
call fcn.00407e10
mov byte [esp + 0x4c8], 1
cmp dword [esp + 0x8c], edi
jb 0x405c29
mov eax, dword [esp + 0x78]
push eax
call fcn.0040ce24
add esp, 4
mov esi, dword [esp + 0x14]
mov edi, dword [esi - 0xc]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x405c50
mov ecx, edi
lea eax, [esp + 0x14]
call fcn.004087e0
mov esi, dword [esp + 0x14]
lea ecx, [edi + 1]
push ecx
push esi
call fcn.0040e657
add esp, 8
test edi, edi
jl 0x405dc1
cmp edi, dword [esi - 8]
jg 0x405dc1
xor edx, edx
mov dword [esi - 0xc], edi
mov word [esi + edi*2], dx
lea edi, [esi - 0x10]
cmp edi, edi
je 0x405cc1
cmp dword [edi + 0xc], edx
lea ebx, [edi + 0xc]
jl 0x405cb4
mov eax, dword [edi]
cmp eax, eax
jne 0x405cb4
mov eax, edi
call fcn.00408490
mov esi, eax
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x405cab
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
add esi, 0x10
mov dword [esp + 0x14], esi
jmp 0x405cc1
mov ebx, dword [esi - 0xc]
push esi
lea eax, [esp + 0x18]
call fcn.004083f0
push 0x426cc4
lea ecx, [esp + 0x18]
push ecx
call fcn.004076b0
push 0x426cc8
lea edx, [esp + 0x18]
push edx
call fcn.004076b0
push 0x426ccc
lea eax, [esp + 0x18]
push eax
call fcn.004076b0
mov esi, dword [esp + 0x18]
test esi, esi
jne 0x405cfa
xor eax, eax
jmp 0x405d0f
mov eax, esi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405d00
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x1c]
push ecx
call fcn.00407e10
mov edi, dword [esp + 0x14]
xor edx, edx
mov dword [ebp + 0x18], 7
mov dword [ebp + 0x14], 0
mov eax, edi
mov word [ebp + 4], dx
lea edx, [eax + 2]
jmp 0x405d40
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405d40
sub eax, edx
sar eax, 1
push eax
mov eax, edi
mov esi, ebp
call fcn.00408660
lea eax, [edi - 0x10]
mov byte [esp + 0x4c8], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405d7d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x4ec], 8
jb 0x405d97
mov ecx, dword [esp + 0x4d8]
push ecx
call fcn.0040ce24
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x4c0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4a8]
xor ecx, esp
call fcn.0040ce2f
add esp, 0x4b8
ret
mov eax, 0x80070057
call fcn.00404660
int3