Function at 0x4172a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e93b1
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x5363c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [ebp - 0x59]
call fcn.00404c70
mov ecx, dword [edi + 0x6fc]
test ecx, ecx
je 0x4172e8
mov eax, dword [ecx]
push 1
call dword [eax + 0xe0]
mov ecx, dword [edi + 0x700]
test ecx, ecx
je 0x4172fc
mov eax, dword [ecx]
push 0
call dword [eax + 0xe0]
mov ecx, dword [edi + 0x704]
test ecx, ecx
je 0x417310
mov eax, dword [ecx]
push 0
call dword [eax + 0xe0]
mov ecx, dword [edi + 0x708]
test ecx, ecx
je 0x417324
mov eax, dword [ecx]
push 0
call dword [eax + 0xe0]
mov ecx, dword [edi + 0x70c]
test ecx, ecx
je 0x417338
mov eax, dword [ecx]
push 1
call dword [eax + 0xe0]
mov ecx, dword [edi + 0x740]
mov dword [edi + 0x754], 2
test ecx, ecx
je 0x417356
mov eax, dword [ecx]
push 1
call dword [eax + 0xec]
mov ecx, dword [edi + 0x744]
test ecx, ecx
je 0x41736a
mov eax, dword [ecx]
push 1
call dword [eax + 0xec]
mov ecx, dword [edi + 0x748]
test ecx, ecx
je 0x41737e
mov eax, dword [ecx]
push 0
call dword [eax + 0xe0]
mov ecx, dword [edi + 0x74c]
test ecx, ecx
je 0x417392
mov eax, dword [ecx]
push 0
call dword [eax + 0xe0]
mov ecx, dword [edi + 0x750]
test ecx, ecx
je 0x4173a6
mov eax, dword [ecx]
push 0
call dword [eax + 0xe0]
mov eax, dword [0x538168]
test eax, eax
jne 0x4173f3
push 0x1a0
call fcn.004bb92e
mov esi, eax
add esp, 4
mov dword [ebp - 0x60], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x4173e5
push 0x1a0
push 0
push esi
call fcn.004bda50
add esp, 0xc
mov ecx, esi
call fcn.00406db0
jmp 0x4173e7
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x538168], eax
mov ecx, eax
call sym.CAD.exe_public:_int___thiscall_DuiLib::CPaintManagerUI::GetTooltipWindowWidth_void_const
mov ecx, eax
mov dword [ebp - 0x60], ecx
cmp ecx, 0xffffffff
jne 0x417457
call fcn.004059f0
mov ecx, eax
call fcn.00407880
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x417457
call fcn.004059f0
mov ecx, eax
call fcn.00407880
mov ecx, dword [eax + 4]
mov esi, dword [eax]
sub ecx, esi
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x4177a9
mov eax, dword [esi]
mov dword [ebp - 0x60], eax
xorps xmm0, xmm0
mov dword [ebp - 0x48], 0
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 4], 1
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
mov eax, dword [0x538168]
mov byte [ebp - 4], 2
test eax, eax
jne 0x4174d8
push 0x1a0
call fcn.004bb92e
mov esi, eax
add esp, 4
mov dword [ebp - 0x64], esi
mov byte [ebp - 4], 3
test esi, esi
je 0x4174cd
push 0x1a0
push 0
push esi
call fcn.004bda50
add esp, 0xc
mov ecx, esi
call fcn.00406db0
jmp 0x4174cf
xor eax, eax
mov byte [ebp - 4], 2
mov dword [0x538168], eax
mov ecx, eax
call fcn.00407880
mov esi, dword [eax]
mov ecx, dword [eax + 4]
cmp esi, ecx
je 0x41753d
mov eax, dword [ebp - 0x60]
nop dword [eax + eax]
cmp eax, dword [esi]
je 0x4174fd
add esi, 0x68
cmp esi, ecx
jne 0x4174f0
jmp 0x41753d
lea eax, [esi + 8]
lea ecx, [ebp - 0x58]
cmp ecx, eax
je 0x41751d
cmp dword [eax + 0x14], 0x10
mov ecx, eax
jb 0x417511
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x58]
call fcn.00402e50
add esi, 0x38
lea eax, [ebp - 0x40]
cmp eax, esi
je 0x41753d
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x417531
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x40]
push eax
call fcn.00402e50
cmp dword [edi + 0x738], 0
je 0x4175b6
cmp dword [ebp - 0x44], 0x10
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00401950
add esp, 8
mov edx, eax
cmp dword [edx + 0x14], 8
mov byte [ebp - 4], 4
jb 0x41756c
mov edx, dword [edx]
mov ecx, dword [edi + 0x738]
push edx
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 2
cmp ecx, 8
jb 0x4175b6
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4175ac
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4177ae
push ecx
push edx
call fcn.004bb95e
add esp, 8
mov ecx, dword [edi + 0x73c]
test ecx, ecx
je 0x41771c
mov eax, dword [ecx]
push 0
call dword [eax + 0xec]
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
movups xmmword [ebp - 0x28], xmm0
mov word [ebp - 0x28], ax
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
push 0x4ef438
mov byte [ebp - 4], 5
call esi
test eax, eax
je 0x417605
mov ecx, 0x4ef43c
jmp 0x41761b
push 0x4ef444
call esi
test eax, eax
mov ecx, 0x4ef448
mov edx, 0x5113d4
cmove ecx, edx
push ecx
lea ecx, [ebp - 0x28]
call fcn.00412070
cmp dword [ebp - 0x18], 0
je 0x4176e2
push 0x12
push 0x4ef080
lea ecx, [ebp - 0x28]
call fcn.0040b200
push 1
push 0x4ef07c
lea ecx, [ebp - 0x28]
call fcn.0040b200
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.00401950
add esp, 8
cmp dword [eax + 0x14], 8
mov ecx, eax
mov byte [ebp - 4], 6
jb 0x417672
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x28]
call fcn.0040b200
mov ecx, dword [ebp - 0x68]
mov byte [ebp - 4], 5
cmp ecx, 8
jb 0x4176bc
mov edx, dword [ebp - 0x7c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4176b2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4177b3
push ecx
push edx
call fcn.004bb95e
add esp, 8
push 1
push 0x4ef07c
lea ecx, [ebp - 0x28]
call fcn.0040b200
mov ecx, dword [edi + 0x73c]
lea edx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae edx, dword [ebp - 0x28]
mov eax, dword [ecx]
push edx
call dword [eax + 0x3c]
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x41771c
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x417712
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4177b8
push ecx
push edx
call fcn.004bb95e
add esp, 8
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0x10
jb 0x41774c
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x417742
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4177bd
push ecx
push edx
call fcn.004bb95e
add esp, 8
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
cmp ecx, 0x10
jb 0x41778e
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x417784
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4177bd
push ecx
push edx
call fcn.004bb95e
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bb96c
mov esp, ebp
pop ebp
ret
call fcn.0040df60
call fcn.004c15cf
call fcn.004c15cf
call fcn.004c15cf
call fcn.004c15cf
int3