Function at 0x433560
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cad8b
mov eax, dword fs:[0]
push eax
sub esp, 0x848
mov eax, dword [0x51c080]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 0x834], eax
mov ebx, ecx
mov dword [ebp - 0x824], ebx
mov dword [ebp - 0x82c], 3
xor edi, edi
mov dword [ebp - 0x828], edi
mov dword [ebp - 4], edi
cmp ebx, edi
jne 0x4335c2
xor eax, eax
jmp 0x433834
lea esi, [ebx + 0x8218]
mov eax, esi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4335d0
sub eax, edx
sar eax, 1
je 0x433827
push 0x800
push edi
lea ecx, [ebp - 0x81c]
push ecx
call fcn.004ab450
add esp, 0xc
push edi
push 0x400
push 0x527d38
lea edi, [ebp - 0x81c]
mov edx, esi
call fcn.00458ee0
test eax, eax
je 0x43362c
push 0x3ff
push esi
push 0x400
mov edx, edi
push edx
call fcn.004a9be0
add esp, 0x10
lea eax, [ebp - 0x81c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4336b0
lea ecx, [ebp - 0x81c]
push ecx
mov edx, ebx
mov ecx, dword [ebp - 0x834]
call fcn.004342f0
test eax, eax
jne 0x4336b0
mov dword [ebp - 0x82c], 1
push str.Printer
lea edx, [ebx + 0x204]
push edx
call fcn.004a9af1
add esp, 8
test eax, eax
jne 0x433776
lea esi, [ebp - 0x850]
call fcn.0045b660
mov byte [ebp - 4], 1
mov bl, byte [eax + 0x18]
mov byte [ebp - 4], 0
mov ecx, esi
call fcn.0045b750
test bl, bl
je 0x4336c5
mov esi, dword [ebp - 0x824]
add esi, 0xbe18
mov dword [ebp - 0x828], esi
jmp 0x4336d8
push 0x800
push 0
push esi
call fcn.004ab450
add esp, 0xc
jmp 0x433827
mov eax, dword [ebp - 0x824]
add eax, 0xc618
mov dword [ebp - 0x828], eax
mov esi, eax
push 0x800
push 0
lea ecx, [ebp - 0x81c]
push ecx
call fcn.004ab450
add esp, 0xc
push 0
push 0x400
push 0x527d38
lea edi, [ebp - 0x81c]
mov edx, esi
call fcn.00458ee0
test eax, eax
je 0x433721
push 0x3ff
push esi
push 0x400
mov edx, edi
push edx
call fcn.004a9be0
add esp, 0x10
lea eax, [ebp - 0x81c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x433770
push 0x400
push eax
push esi
call fcn.004ab450
add esp, 0xc
mov eax, dword [ebp - 0x824]
add eax, 0x404
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x433750
sub eax, edx
sar eax, 1
je 0x433770
mov dword [ebp - 0x82c], 2
jmp 0x433827
mov ebx, dword [ebp - 0x824]
mov byte [ebp - 0x81d], 1
lea esi, [ebx + 0x404]
mov eax, esi
lea edx, [eax + 2]
jmp 0x433790
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x433790
sub eax, edx
sar eax, 1
je 0x433815
push 0x800
push 0
lea ecx, [ebp - 0x81c]
push ecx
call fcn.004ab450
add esp, 0xc
push 0
push 0x400
push 0x527d38
lea edi, [ebp - 0x81c]
mov edx, esi
call fcn.00458ee0
test eax, eax
je 0x4337ea
push 0x3ff
push esi
push 0x400
mov edx, edi
push edx
call fcn.004a9be0
add esp, 0x10
lea eax, [ebp - 0x81c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x433815
lea ecx, [ebp - 0x81c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x433815
mov byte [ebp - 0x81d], 0
jmp 0x433827
push esi
lea ecx, [ebx + 0xb618]
mov edx, dword [ebp - 0x828]
call fcn.00433da0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x82c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.004a998e
mov esp, ebp
pop ebp
ret 4