Function at 0x421910
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x505b4b
mov eax, dword fs:[0]
push eax
sub esp, 0x160
mov eax, dword [0x55f3d0]
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
mov esi, dword [ebp + 0x10]
lea ecx, [ebp - 0x149]
mov dword [ebp - 0x148], esi
call fcn.004059f0
mov ecx, dword [edi + 0x5c]
test ecx, ecx
je 0x421964
mov eax, dword [ecx]
push 0x50e890
call dword [eax + 0x3c]
mov ecx, dword [edi + 0x54]
test ecx, ecx
je 0x421975
mov eax, dword [ecx]
push 1
call dword [eax + 0xec]
mov ecx, dword [edi + 0x58]
test ecx, ecx
je 0x421986
mov eax, dword [ecx]
push 1
call dword [eax + 0xec]
cmp byte [ebp + 8], 0
je 0x421c4a
call fcn.00406b50
mov ecx, eax
call sym.CAD.exe_public:_int___thiscall_DuiLib::CPaintManagerUI::GetTooltipWindowWidth_void_const
mov dword [ebp - 0x154], eax
call fcn.00406b50
mov ecx, eax
call fcn.00411200
mov ecx, dword [eax + 4]
mov dword [ebp - 0x150], ecx
call fcn.00406b50
mov ecx, eax
call fcn.00411200
mov esi, dword [eax]
mov eax, dword [ebp - 0x150]
cmp esi, eax
je 0x4219e0
mov ecx, dword [ebp - 0x154]
cmp dword [esi], ecx
je 0x4219e0
add esi, 0x68
cmp esi, eax
jne 0x4219d5
call fcn.00406b50
mov ecx, eax
call fcn.00411200
cmp esi, dword [eax + 4]
jne 0x421a22
push 0x12c
push 0x50e89c
lea ecx, [edi - 0x6ec]
call fcn.00424910
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push 0
push 0
push dword [ebp - 0x148]
jmp 0x421c71
mov ecx, dword [edi + 0x5c]
test ecx, ecx
je 0x421a33
mov eax, dword [ecx]
push 0x50e8c0
call dword [eax + 0x3c]
cmp dword [esi + 0x60], 0
jne 0x421a45
push 0xc8
push 0x50e8cc
jmp 0x4219fb
push 0x104
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.004d84c0
add esp, 0xc
lea eax, [ebp - 0x114]
push dword [ebp - 0x148]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
add esi, 0x50
cmp dword [esi + 0x14], 0x10
jb 0x421a79
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
xorps xmm0, xmm0
mov dword [ebp - 0x11c], 0
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x118], 0
movups xmmword [ebp - 0x12c], xmm0
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x421ab0
sub ecx, edx
lea eax, [ebp - 0x114]
push ecx
push eax
lea ecx, [ebp - 0x12c]
call fcn.00404190
push 0xffffffffffffffff
push 0x50d278
lea ecx, [ebp - 0x12c]
mov dword [ebp - 4], 0
call fcn.00425e20
push eax
push 0
lea eax, [ebp - 0x16c]
push eax
lea ecx, [ebp - 0x12c]
call fcn.00402250
mov esi, eax
lea eax, [ebp - 0x12c]
cmp eax, esi
je 0x421b35
mov ecx, eax
call fcn.004033e0
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x12c], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x11c], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
lea ecx, [ebp - 0x16c]
call fcn.004033e0
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
mov edx, eax
mov dword [ebp - 0x134], 0
mov ecx, edx
mov dword [ebp - 0x130], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x144], xmm0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x421b72
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x144]
call fcn.00404190
lea eax, [ebp - 0x114]
mov byte [ebp - 4], 1
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x421bd8
push 0xc8
push 0x50e8cc
lea ecx, [edi - 0x6ec]
call fcn.00424910
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push 0
push 0
push dword [ebp - 0x148]
push 0x531764
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x421c32
push 1
push 0
push 0
push dword [ebp - 0x148]
push 0x531764
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x118], 0x10
lea ecx, [ebp - 0x12c]
push 1
cmovae ecx, dword [ebp - 0x12c]
lea eax, [ebp - 0x144]
cmp dword [ebp - 0x130], 0x10
push 0
cmovae eax, dword [ebp - 0x144]
push eax
push ecx
call fcn.00401ac0
add esp, 0x10
lea ecx, [ebp - 0x144]
call fcn.004033e0
lea ecx, [ebp - 0x12c]
call fcn.004033e0
jmp 0x421c7e
push 0xc8
push 0x50e8e8
lea ecx, [edi - 0x6ec]
call fcn.00424910
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push 0
push 0
push esi
push 0x531764
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
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.004d635c
mov esp, ebp
pop ebp
ret 0xc