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

Disassembly:
push 0xffffffffffffffff
push 0x4230ff
mov eax, dword fs:[0]
push eax
sub esp, 0x4ac
mov eax, dword [0x42b35c]
xor eax, esp
mov dword [esp + 0x4a8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42b35c]
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 0x4022c6
lea ecx, [esp + 0x4d4]
push ecx
mov ebx, 0x426a6c
lea esi, [esp + 0x78]
call fcn.00405900
add esp, 4
push eax
mov ebx, edi
lea esi, [esp + 0x40]
mov byte [esp + 0x4cc], 2
call fcn.00405900
add esp, 4
push eax
mov ebx, 0x426a68
lea esi, [esp + 0x5c]
mov byte [esp + 0x4cc], 3
call fcn.00405900
add esp, 4
mov ebx, dword [esp + 0x18]
push eax
lea esi, [esp + 0x94]
mov byte [esp + 0x4cc], 4
call fcn.00405900
mov ebx, 8
add esp, 4
cmp dword [esp + 0x70], ebx
jb 0x4021b7
mov edx, dword [esp + 0x5c]
push edx
call fcn.0040cc3a
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 0x4021df
mov ecx, dword [esp + 0x40]
push ecx
call fcn.0040cc3a
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 0x402210
mov eax, dword [esp + 0x78]
push eax
call fcn.0040cc3a
add esp, 4
mov eax, dword [esp + 0x94]
cmp dword [esp + 0xa8], ebx
jae 0x402227
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 0xb0]
push 0x104
push ecx
call fcn.0040d827
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 0x4022cb
mov edx, dword [esp + 0x94]
push edx
call fcn.0040cc3a
add esp, 4
jmp 0x4022cb
mov ebx, 8
mov eax, dword [esp + 0x4d8]
cmp dword [esp + 0x4ec], ebx
jae 0x4022e2
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 0x402337
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 0x402310
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x2b4]
mov ebx, eax
push ecx
lea eax, [esp + 0x18]
call fcn.00404e30
jmp 0x4023c9
test edi, edi
jne 0x40233f
xor eax, eax
jmp 0x402353
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402344
sub eax, edx
sar eax, 1
mov ebx, eax
push edi
lea eax, [esp + 0x18]
call fcn.00404e30
lea ecx, [esp + 0x74]
call fcn.00402000
mov edi, 8
mov byte [esp + 0x4c8], 5
cmp dword [eax + 0x18], edi
jb 0x40237f
mov edx, dword [eax + 4]
jmp 0x402382
lea edx, [eax + 4]
test edx, edx
jne 0x40238a
xor eax, eax
jmp 0x40239f
mov eax, edx
lea esi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402390
sub eax, esi
sar eax, 1
push eax
push edx
lea edx, [esp + 0x1c]
push edx
call fcn.00404680
mov byte [esp + 0x4c8], 1
cmp dword [esp + 0x8c], edi
jb 0x4023c9
mov eax, dword [esp + 0x78]
push eax
call fcn.0040cc3a
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 0x4023f0
mov ecx, edi
lea eax, [esp + 0x14]
call fcn.00405300
mov esi, dword [esp + 0x14]
lea ecx, [edi + 1]
push ecx
push esi
call fcn.0040d3f8
add esp, 8
test edi, edi
jl 0x402561
cmp edi, dword [esi - 8]
jg 0x402561
xor edx, edx
mov dword [esi - 0xc], edi
mov word [esi + edi*2], dx
lea edi, [esi - 0x10]
cmp edi, edi
je 0x402461
cmp dword [edi + 0xc], edx
lea ebx, [edi + 0xc]
jl 0x402454
mov eax, dword [edi]
cmp eax, eax
jne 0x402454
mov eax, edi
call fcn.00404ed0
mov esi, eax
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x40244b
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 0x402461
mov ebx, dword [esi - 0xc]
push esi
lea eax, [esp + 0x18]
call fcn.00404e30
push 0x426a70
lea ecx, [esp + 0x18]
push ecx
call fcn.00403e50
push 0x426a74
lea edx, [esp + 0x18]
push edx
call fcn.00403e50
push 0x426a78
lea eax, [esp + 0x18]
push eax
call fcn.00403e50
mov esi, dword [esp + 0x18]
test esi, esi
jne 0x40249a
xor eax, eax
jmp 0x4024af
mov eax, esi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4024a0
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x1c]
push ecx
call fcn.00404680
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 0x4024e0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4024e0
sub eax, edx
sar eax, 1
push eax
mov eax, edi
mov esi, ebp
call fcn.00405180
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 0x40251d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x4ec], 8
jb 0x402537
mov ecx, dword [esp + 0x4d8]
push ecx
call fcn.0040cc3a
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.0040cc45
add esp, 0x4b8
ret
mov eax, 0x80070057
call fcn.00401030
int3