Function at 0x10032250
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1010c031
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x101555ac]
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 esi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], 0
test esi, esi
je 0x1003256d
push esi
lea ecx, [ebp - 0x2c]
call fcn.10003fd0
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
or edi, 0xffffffff
test eax, eax
je 0x100323c9
mov eax, dword [ebx + 4]
mov byte [ebp - 4], 1
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x100322d4
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x100322ea
call fcn.10004f30
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x1003258b
mov eax, dword [ecx]
call dword [eax + 0xc]
mov dword [ebp - 0x38], 1
lea esi, [eax + 0x10]
mov eax, dword [ebx + 4]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x3c], eax
mov edi, dword [eax - 0xc]
mov dword [ebp - 0x40], edi
lea edx, [edi + 1]
test edx, edx
js 0x10032595
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x10032330
push edx
lea ecx, [ebp - 0x30]
call fcn.100052c0
mov esi, dword [ebp - 0x30]
add edi, edi
push edi
push dword [ebp - 0x3c]
push edi
push esi
call fcn.10032ea0
lea ecx, [edi + esi]
add esp, 0x10
test ecx, ecx
jne 0x10032359
call fcn.100adb97
mov dword [eax], 0x16
call fcn.100ada70
jmp 0x10032362
mov ax, word [0x10118b08]
mov word [ecx], ax
mov eax, dword [ebp - 0x40]
inc eax
cmp eax, dword [esi - 8]
jg 0x10032595
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x2c]
call fcn.10007b00
or edi, 0xffffffff
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x100323a2
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x44]
mov ecx, edx
lea esi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100323b0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.10012f40
mov eax, dword [ebp - 0x2c]
cmp dword [eax - 0xc], 0
jl 0x1003252e
push str.SmartWriterTray.exe
push eax
call fcn.10093859
mov ecx, eax
add esp, 8
mov eax, dword [ebp - 0x2c]
test ecx, ecx
je 0x1003252e
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
je 0x1003252e
push 0
push 0
push str.newinstall_start_tray
mov ecx, ebx
call fcn.100327f0
push dword [ebp - 0x2c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1003242e
push eax
push eax
push str.newinstall_tray_exe_lose_1
mov ecx, ebx
call fcn.100327f0
jmp 0x1003251c
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x30], 0xffffffff
push eax
push 1
push dword [ebp - 0x34]
mov ecx, ebx
push dword [ebp - 0x2c]
call fcn.100325b0
call fcn.10004f30
mov ecx, eax
test ecx, ecx
je 0x1003259f
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x34], eax
push dword [ebp - 0x30]
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 3
push str.ex1_d
push eax
call fcn.10007e70
mov esi, dword [ebp - 0x34]
lea eax, [ebp - 0x28]
add esp, 0xc
mov ecx, ebx
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push 0
push esi
push eax
call fcn.100327f0
mov byte [ebp - 4], 2
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x100324ca
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x10032508
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100324fe
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100325a9
push edx
push ecx
call fcn.10063729
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
push 0
push 0
push str.newinstall_end_start_tray
mov ecx, ebx
call fcn.100327f0
jmp 0x1003254e
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1003254e
push 0xffffffffffffffff
push 0
push 0
push 1
push 1
push dword [ebp - 0x34]
push dword [ebp - 0x2c]
call fcn.10044680
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x1003256d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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.10063718
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.100042e0
push 0x80070057
call fcn.100042e0
push 0x80004005
call fcn.100042e0
call fcn.100ada80
int3