Function at 0x410860
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d1a3b
push eax
mov dword fs:[0], esp
sub esp, 0x308
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea ecx, [edi + 0x1b88]
call fcn.00431cf0
test eax, eax
jne 0x4108ca
lea ecx, [edi + 0x2548]
call fcn.0042b570
test eax, eax
jne 0x4108ca
lea esi, [edi + 0x2690]
mov ecx, esi
call fcn.00429c90
test eax, eax
jne 0x41092d
lea ecx, [edi + 0x27d4]
call fcn.0044f210
test eax, eax
jne 0x4108ca
lea ecx, [edi + 0x1a54]
call fcn.0042b570
mov edx, dword [edi + 0xd0]
push 0
push 0
push 0x1032
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov esi, eax
cmp esi, 1
jl 0x410bc9
mov ebx, dword [sym.imp.USER32.dll_LoadCursorA]
push 0x7f02
push 0
call ebx
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov ebp, eax
mov dword [esp + 0x10], ebp
cmp esi, 1
mov dword [esp + 0x320], 0
jle 0x4109a6
mov ecx, edi
call fcn.0040ad20
test ebp, ebp
je 0x410998
mov eax, ebp
jmp 0x410bc2
push 0xffffffffffffffff
mov ecx, esi
call fcn.00429640
test eax, eax
je 0x410bc9
mov esi, dword [eax + 8]
mov eax, dword [edi + 0xcc]
push 5
push 0
push 0
push esi
push 0
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jg 0x410bc9
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x410bc9
test edi, edi
je 0x410977
mov edi, dword [edi + 0x1c]
mov ecx, dword [0x4f5e08]
push 0
push 0x101
push 0x259
push edi
push ecx
call fcn.00471530
add esp, 0x14
jmp 0x410bc9
push 0x7f00
push 0
call ebx
jmp 0x410bc2
lea ecx, [edi + 0x1b88]
call fcn.0042d8d0
mov ebx, eax
test ebx, ebx
jne 0x4109c6
test ebp, ebp
je 0x410bb5
mov eax, ebp
jmp 0x410bc2
test byte [ebx + 0x2c], 4
je 0x4109d8
mov ecx, edi
call fcn.0040bc00
jmp 0x410bad
mov ecx, ebx
call fcn.00425db0
test eax, eax
je 0x410b2f
mov ecx, dword [edi + 0x14c]
test ecx, ecx
je 0x410a7b
mov eax, dword [ecx]
push 1
push ebx
call dword [eax + 0x18]
mov esi, eax
test esi, esi
jne 0x410b18
mov ecx, dword [ebx + 0x34]
mov edx, dword [0x4f5e08]
push ecx
push 0x20b
lea eax, [esp + 0x120]
push edx
push eax
call fcn.00472a10
lea ecx, [esp + 0x24]
push 0x100
push ecx
call fcn.004715d0
add esp, 0x18
test eax, eax
je 0x410a5e
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x118]
push 0x4edc4c
push edx
call esi
lea eax, [esp + 0x14]
lea ecx, [esp + 0x118]
push eax
push ecx
call esi
mov edx, dword [0x4ed220]
push 0x30
lea eax, [esp + 0x11c]
push edx
push eax
mov ecx, edi
call fcn.004bf140
jmp 0x410bad
lea ecx, [esp + 0x118]
push 1
push ecx
mov ecx, ebx
call fcn.004257f0
lea edx, [esp + 0x118]
push 1
push edx
call fcn.0045fce0
mov esi, eax
add esp, 8
test esi, esi
jne 0x410b18
mov ecx, dword [0x4f5e08]
lea eax, [esp + 0x118]
push eax
push 0x20b
lea edx, [esp + 0x1c]
push ecx
push edx
call fcn.00472a10
add esp, 0x10
lea eax, [esp + 0x14]
push 0x4edc4c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x14]
push ecx
call esi
mov edx, 0x104
sub edx, eax
lea eax, [esp + 0x14]
push edx
push eax
call esi
lea ecx, [esp + eax + 0x18]
push ecx
call fcn.004715d0
mov edx, dword [0x4ed220]
add esp, 8
lea eax, [esp + 0x14]
mov ecx, edi
push 0x30
push edx
push eax
call fcn.004bf140
jmp 0x410bad
push 1
push 1
push 0
push esi
mov ecx, edi
call fcn.004137e0
mov ecx, esi
call fcn.0045f810
jmp 0x410bad
test byte [ebx + 0x2c], 1
je 0x410bad
push 0
mov ecx, ebx
call fcn.004263f0
test eax, eax
jne 0x410ba6
mov ecx, ebx
call fcn.00425d40
test eax, eax
jne 0x410ba6
lea ecx, [edi + 0x1b88]
call fcn.0042d8d0
test eax, eax
je 0x410bad
push 0
push 0
lea ecx, [esp + 0x120]
push 1
push ecx
mov ecx, eax
call fcn.00425910
lea edx, [esp + 0x14]
lea eax, [esp + 0x118]
push edx
push eax
call fcn.00471240
mov eax, dword [edi + 0xcc]
lea ecx, [esp + 0x1c]
push str.open
lea edx, [esp + 0x124]
push ecx
push edx
push eax
call fcn.00401ac0
add esp, 0x18
jmp 0x410bad
mov ecx, edi
call fcn.0040ad20
test ebp, ebp
je 0x410bb5
mov eax, ebp
jmp 0x410bc2
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov ecx, dword [esp + 0x318]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x314
ret