Function at 0x40b570
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x585937
mov eax, dword fs:[0]
push eax
sub esp, 0x650
mov eax, dword [0x5fcfe4]
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 ebx, ecx
mov dword [ebp - 0x65c], ebx
call fcn.00425110
push 0x5dd4e8
mov ecx, ebx
call fcn.0042606d
push ecx
lea ecx, [ebp - 0x648]
call fcn.0040d760
lea eax, [ebp - 0x648]
mov dword [ebp - 4], 0
mov dword [ebx + 0x20], eax
call fcn.0041b1fd
mov edi, eax
test edi, edi
je 0x40b970
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x597998]
mov ecx, edi
call esi
lea esi, [eax + 0x10]
mov dword [ebp - 0x64c], esi
lea ecx, [ebp - 0x648]
mov byte [ebp - 4], 1
call fcn.0040f450
mov eax, dword [ebx + 0x48]
or ebx, 0xffffffff
test eax, eax
je 0x40b8d9
cmp word [eax], 0
je 0x40b8d9
push 1
push eax
lea eax, [ebp - 0x654]
push eax
lea ecx, [ebp - 0x648]
call fcn.004134f0
mov byte [ebp - 4], 2
lea edi, [esi - 0x10]
mov ecx, dword [eax]
mov dword [ebp - 0x658], edi
lea edx, [ecx - 0x10]
cmp edx, edi
je 0x40b6b9
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x40b6a4
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x40b6a4
push edx
call fcn.0040a8a0
add esp, 4
mov dword [ebp - 0x650], eax
mov ecx, ebx
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x40b699
lfence
mov edi, dword [edi]
push dword [ebp - 0x658]
mov edx, dword [edi]
mov esi, dword [edx + 4]
mov ecx, esi
call dword [0x597998]
mov ecx, edi
call esi
mov eax, dword [ebp - 0x650]
lea esi, [eax + 0x10]
mov dword [ebp - 0x64c], esi
jmp 0x40b6b9
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x64c]
call fcn.0040b2c0
mov esi, dword [ebp - 0x64c]
mov byte [ebp - 4], 1
mov eax, ebx
mov ecx, dword [ebp - 0x654]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x40b6ec
lfence
mov ebx, dword [ecx]
push ecx
mov eax, dword [ebx]
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x597998]
mov ecx, ebx
call edi
or ebx, 0xffffffff
cmp dword [esi - 0xc], 0
jne 0x40b892
lea eax, [ebp - 0x650]
push eax
lea ecx, [ebp - 0x648]
call fcn.004133c0
mov esi, eax
lea eax, [ebp - 0x654]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x648]
call fcn.0040e7d0
mov byte [ebp - 4], 4
push dword [esi]
push dword [eax]
mov eax, dword [ebp - 0x65c]
push dword [eax + 0x48]
lea eax, [ebp - 0x64c]
push str.Global_Labeling_Management_Print_Tool_will_print_following_file_now_n_s_nPrinter:_t_s_n_s
push eax
call fcn.0040aeb0
mov byte [ebp - 4], 3
add esp, 0x14
mov ecx, dword [ebp - 0x654]
mov eax, ebx
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x40b775
lfence
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x597998]
mov ecx, edi
call esi
mov byte [ebp - 4], 1
mov eax, ebx
mov ecx, dword [ebp - 0x650]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x40b7a5
lfence
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x597998]
mov ecx, edi
call esi
lea ecx, [ebp - 0x648]
call fcn.00414eb0
mov esi, dword [ebp - 0x64c]
test al, al
je 0x40b7cd
push 0
push 1
push esi
call fcn.0042630c
cmp eax, 1
jne 0x40b8c8
lea eax, [ebp - 0x658]
push eax
lea ecx, [ebp - 0x648]
call fcn.00411fa0
mov byte [ebp - 4], 5
lea edi, [esi - 0x10]
mov ecx, dword [eax]
mov dword [ebp - 0x654], edi
lea edx, [ecx - 0x10]
cmp edx, edi
je 0x40b860
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x40b84b
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x40b84b
push edx
call fcn.0040a8a0
add esp, 4
mov dword [ebp - 0x650], eax
mov ecx, ebx
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x40b840
lfence
mov edi, dword [edi]
push dword [ebp - 0x654]
mov edx, dword [edi]
mov esi, dword [edx + 4]
mov ecx, esi
call dword [0x597998]
mov ecx, edi
call esi
mov eax, dword [ebp - 0x650]
lea esi, [eax + 0x10]
mov dword [ebp - 0x64c], esi
jmp 0x40b860
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x64c]
call fcn.0040b2c0
mov esi, dword [ebp - 0x64c]
mov byte [ebp - 4], 1
mov eax, ebx
mov ecx, dword [ebp - 0x658]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x40b8d9
lfence
mov ebx, dword [ecx]
push ecx
mov eax, dword [ebx]
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x597998]
mov ecx, ebx
call edi
jmp 0x40b8d9
push 0x2d
push str._nOpen_Wizard_with_last_working_configuration_
lea ecx, [ebp - 0x64c]
call fcn.0040a7b0
lea ecx, [ebp - 0x648]
call fcn.00414eb0
test al, al
je 0x40b8d3
mov esi, dword [ebp - 0x64c]
push 0
push 4
push esi
call fcn.0042630c
cmp eax, 7
jne 0x40b8d9
lea ecx, [ebp - 0x64c]
call fcn.0040af30
mov esi, dword [ebp - 0x64c]
mov ebx, dword [ebp - 0x65c]
mov edi, dword [ebx + 0x48]
test edi, edi
je 0x40b90a
cmp word [edi], 0
je 0x40b90a
cmp dword [esi - 0xc], 0
jne 0x40b90a
lea ecx, [ebp - 0x648]
call fcn.00414ea0
test al, al
je 0x40b915
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x40b915
lea ecx, [ebp - 0x648]
call fcn.0041a280
mov dword [ebx + 0x20], 0
add esi, 0xfffffff0
mov byte [ebp - 4], 0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40b947
lfence
mov edi, dword [esi]
push esi
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x597998]
mov ecx, edi
call esi
lea ecx, [ebp - 0x648]
call fcn.0040dc50
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.0055d0aa
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0040b400
int3