Function at 0x415110
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x535a18
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x5a6a30]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], ecx
lea ecx, [ebp - 0x50]
call fcn.00439ce1
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
call fcn.004022a0
mov esi, dword [ebp + 8]
push esi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.004022a0
push esi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.004022a0
mov byte [ebp - 4], 3
call fcn.0042aa6c
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x415191
push 0x80004005
call fcn.004010e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp + 0xc], edi
push 1
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
mov dword [ebp - 0x1c], 1
call fcn.0040f160
mov eax, dword [eax]
mov ecx, 0x5457b4
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4151e6
test dx, dx
je 0x4151e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4151e6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4151c0
xor eax, eax
jmp 0x4151eb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
mov eax, dword [ebp - 0x20]
setne bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41520f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x415222
push 1
push 0x5457b4
lea ecx, [ebp - 0x14]
call fcn.004049b0
push 3
push 0x54baac
lea ecx, [ebp - 0x14]
call fcn.004049b0
mov edx, dword [ebp - 0x14]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x415250
push 0
lea ecx, [ebp - 0x14]
call fcn.004015a0
mov edx, dword [ebp - 0x14]
push 0
push edx
lea ecx, [ebp - 0x50]
call fcn.00439d88
test eax, eax
je 0x4154f0
lea ecx, [ebp - 0x50]
call fcn.00439951
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x34], eax
call fcn.00439ca3
test eax, eax
jne 0x4154d5
mov edx, dword [ebp - 0x50]
mov eax, dword [edx + 0x38]
push 0x10
lea ecx, [ebp - 0x50]
call eax
test eax, eax
je 0x4153ce
test esi, esi
jne 0x41529b
xor eax, eax
jmp 0x4152af
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4152a0
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp + 0xc]
call fcn.00401bc0
push 1
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp + 0xc]
call fcn.0040f160
mov eax, dword [eax]
mov ecx, 0x5457b4
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4152f6
test dx, dx
je 0x4152f2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4152f6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4152d0
xor eax, eax
jmp 0x4152fb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
mov eax, dword [ebp - 0x20]
setne bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41531f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x415332
push 1
push 0x5457b4
lea ecx, [ebp + 0xc]
call fcn.004049b0
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x50]
call fcn.0043a064
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 5
call fcn.004049b0
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
mov byte [ebp - 4], 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x415374
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [ebp - 0x18]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x415393
push 0
lea ecx, [ebp - 0x18]
call fcn.004015a0
mov edx, dword [ebp - 0x18]
mov edi, dword [ebp + 0xc]
mov ecx, dword [edi - 8]
mov eax, 1
sub eax, dword [edi - 4]
mov esi, edx
or ecx, eax
jge 0x4153b4
push 0
lea ecx, [ebp + 0xc]
call fcn.004015a0
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x28]
push esi
push edi
call sym.DelDrv.exe_private:_int___thiscall_CPrinterDriverInf::FindTempFile_wchar_t_const___wchar_t_const__
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x4154e8
jmp 0x4154d2
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x50]
call fcn.0043a064
mov esi, eax
mov eax, dword [esi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
or eax, ecx
mov byte [ebp - 4], 6
jge 0x4153fa
push 0
mov ecx, esi
call fcn.004015a0
mov esi, dword [esi]
xor eax, eax
test esi, esi
setne al
test eax, eax
je 0x415187
mov edx, dword [ebp - 0x18]
push esi
push edx
call fcn.0051eced
add esp, 8
test eax, eax
mov eax, dword [ebp - 0x2c]
sete bl
add eax, 0xfffffff0
mov byte [ebp - 4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415440
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4154d2
push 1
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x10]
call fcn.0040f160
push 0x5457b4
push eax
call fcn.0040f020
mov bl, al
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
add esp, 8
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x415485
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x415498
push 1
push 0x5457b4
lea ecx, [ebp - 0x10]
call fcn.004049b0
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.004049b0
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x4154c7
push 0
lea ecx, [ebp - 0x10]
call fcn.004015a0
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4154e1
mov esi, dword [ebp + 8]
cmp dword [ebp - 0x34], 0
jne 0x415263
jmp 0x4154e8
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x50]
call fcn.0043986b
lea eax, [edi - 0x10]
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415510
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415533
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x14]
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 0x415556
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415579
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], 0xffffffff
call fcn.00439d13
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8