Function at 0x1005b410
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x1804]
mov eax, 0x1804
call fcn.100c8100
push 0xffffffffffffffff
push 0x100ec0f8
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x10144930]
xor eax, ebp
mov dword [ebp + 0x1800], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov eax, dword [ebp + 0x180c]
mov dword [ebp - 0x1c], eax
mov dword [edi + 0xc], eax
xor edx, edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], edx
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x2c], eax
mov ecx, dword [edi + 0x1c]
mov dword [ebp - 0x28], ecx
mov esi, dword [edi + 0x20]
add esi, eax
mov dword [ebp - 0x24], esi
mov eax, dword [edi + 0x24]
add eax, ecx
mov dword [ebp - 0x20], eax
mov ebx, 0x48000c04
mov dword [ebp - 0x14], ebx
cmp byte [edi + 0x229], dl
je 0x1005b49a
mov ebx, 0x58000c04
mov dword [ebp - 0x14], ebx
mov eax, dword [edi + 0x4f48]
sub eax, 2
je 0x1005b4b2
sub eax, 1
je 0x1005b4af
or ebx, 1
jmp 0x1005b4b2
or ebx, 2
mov dword [ebp - 0x14], ebx
cmp byte [ebp + 0x1810], 0
je 0x1005b52d
lea esi, [edi - 0x58]
cmp esi, edx
jne 0x1005b4c9
xor eax, eax
jmp 0x1005b4cc
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x1005b52d
push eax
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x2c]
push ecx
push edx
mov ecx, esi
push ebx
cmp byte [edi + 0x238], al
jne 0x1005b50f
push 0x20
call fcn.100c2401
test eax, eax
jne 0x1005b589
mov dword [ebp - 0x34], 0x3eb
push 0x1012ac78
lea eax, [ebp - 0x34]
push eax
call fcn.100c80ad
call fcn.100c23d1
test eax, eax
jne 0x1005b589
mov dword [ebp - 0x38], 0x3eb
push 0x1012ac78
lea eax, [ebp - 0x38]
push eax
call fcn.100c80ad
lea esi, [edi - 0x58]
test esi, esi
jne 0x1005b538
xor eax, eax
jmp 0x1005b53b
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1005b589
mov eax, edi
call fcn.10055500
push 0
mov ecx, esi
test al, al
je 0x1005b55e
push 0x400000
push 0
jmp 0x1005b565
push 0
push 0x400000
call fcn.100bd5ba
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x28]
push 4
push eax
mov eax, dword [ebp - 0x24]
mov edx, eax
mov ecx, dword [ebp - 0x2c]
sub edx, ecx
push edx
push eax
push ecx
push 0
mov ecx, esi
call fcn.100bd6c8
test esi, esi
jne 0x1005b591
xor eax, eax
jmp 0x1005b594
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x1005b5b4
mov dword [ebp - 0x30], 6
push 0x1012ac78
lea eax, [ebp - 0x30]
push eax
call fcn.100c80ad
mov ecx, esi
call fcn.1001fc10
mov ecx, eax
call fcn.10016e20
test eax, eax
je 0x1005b5cc
push esi
call fcn.10054a20
cmp byte [edi + 0x238], 0
je 0x1005b5ed
mov eax, dword [edi + 0x23c]
push eax
push 0
push 0x443
mov ecx, dword [edi - 0x38]
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
lea ebx, [edi + 0x2ee8]
push 5
push str._rtf
push ebx
call fcn.100c6ccf
add esp, 0xc
test eax, eax
jne 0x1005b626
push eax
push eax
push 0x1000
lea edx, [ebp]
push edx
push 0xffffffffffffffff
push ebx
push eax
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp]
push eax
jmp 0x1005b712
push 0x800
push 0
lea ecx, [ebp + 0x1000]
push ecx
call fcn.100c7d20
add esp, 0xc
push 0
push 0x400
lea edx, [ebp + 0x1000]
push edx
push ebx
mov ecx, dword [edi + 0x290]
call fcn.10047910
lea eax, [ebp + 0x1000]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1005b711
lea ecx, [ebp - 0x48]
call fcn.100c19aa
mov byte [ebp - 4], 1
mov esi, 2
push 0
push 0
lea ecx, [ebp + 0x1000]
push ecx
lea ecx, [ebp - 0x48]
call fcn.100c1da6
test eax, eax
je 0x1005b6ea
lea ecx, [ebp - 0x48]
call fcn.1005b780
test al, al
jne 0x1005b6a4
mov esi, 0x11
push 0
push 0
push 0
lea ecx, [ebp - 0x48]
mov edx, dword [ebp - 0x48]
mov eax, dword [edx + 0x28]
call eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x4c], 0x1005b860
lea edx, [ebp - 0x54]
push edx
push esi
push 0x449
mov eax, dword [edi - 0x38]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x18], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.100c1a7e
jmp 0x1005b719
lea edx, [ebp + 0x1000]
push edx
push str.Open___s__file_fail__
mov ecx, 0x10152dd8
call fcn.1003f430
add esp, 8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.100c1a7e
jmp 0x1005b719
push ebx
mov ecx, esi
call fcn.100bd5e4
mov eax, dword [edi - 0x38]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1800]
xor ecx, ebp
call fcn.100c59be
add ebp, 0x1804
mov esp, ebp
pop ebp
ret 8