Function at 0x41dc20
Capabilities:
Check if file exists
Get file attributes
Set current directory

Disassembly:
mov eax, 0x1040c
call fcn.004a7cc0
push ebp
push esi
push edi
push 0x8000
lea eax, [esp + 0x41c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [esp + 0xc], eax
test eax, eax
je 0x41dcb3
cmp eax, 0x8000
jne 0x41dc5f
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x1040c
ret 4
lea ecx, [esp + 0x418]
push ecx
mov ecx, eax
call fcn.0047ce30
add esp, 4
mov dword [ebx + 0xad4], eax
test eax, eax
je 0x41dc51
lea edx, [esp + 0x418]
push 0x5c
push edx
call fcn.0049a6f2
add esp, 8
test eax, eax
je 0x41dcb3
mov ecx, eax
lea eax, [esp + 0x418]
sub ecx, eax
mov edx, eax
sar ecx, 1
push edx
call fcn.0047ce30
add esp, 4
mov dword [ebx + 0xad8], eax
test eax, eax
je 0x41dc51
mov ebp, dword [esp + 0x1041c]
test ebp, ebp
jne 0x41ddf4
lea eax, [esp + 0x418]
push 0x5c
push eax
call fcn.0049a6f2
mov esi, eax
add esp, 8
test esi, esi
je 0x41dc51
push 0x2e
push esi
call fcn.0049a6f2
add esp, 8
test eax, eax
je 0x41dc51
mov ecx, eax
lea edx, [esp + 0x418]
sub ecx, edx
sar ecx, 1
add ecx, 5
cmp ecx, 0x8000
jae 0x41dc51
mov ecx, str..ahk
mov edx, eax
sub edx, ecx
movzx eax, word [ecx]
mov word [edx + ecx], ax
add ecx, 2
test ax, ax
jne 0x41dd16
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea eax, [esp + 0x418]
mov ecx, eax
push ecx
mov dword [esp + 0x10420], eax
call ebp
cmp eax, 0xffffffff
jne 0x41dded
lea edx, [esp + 0x10]
mov eax, edx
push 0x4b0cf8
push eax
mov dword [esp + 0x10424], edx
call fcn.0044f6c0
mov ecx, esi
add esp, 8
lea edi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x41dd67
sub ecx, edi
sar ecx, 1
lea ecx, [ecx + eax + 1]
cmp ecx, 0x201
ja 0x41dc51
lea edx, [esp + eax*2 + 0x10]
mov ecx, esi
sub edx, esi
mov edi, edi
movzx eax, word [ecx]
mov word [edx + ecx], ax
add ecx, 2
test ax, ax
jne 0x41dd90
lea edx, [esp + 0x10]
push edx
call ebp
cmp eax, 0xffffffff
jne 0x41dded
mov eax, dword [ebx + 0xad8]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push str.AutoHotkey.chm
call ebp
cmp eax, 0xffffffff
je 0x41dded
push 0
push 0
push 0
push 0
push 0x4b61d8
push 0
push 0
push str._ms_its:AutoHotkey.chm::_docs_Welcome.htm_
push ebx
mov edx, str.hh.exe
call fcn.0043aff0
test eax, eax
jne 0x41dc51
mov ebp, dword [esp + 0x1041c]
cmp word [ebp], 0x2a
jne 0x41de40
cmp word [ebp + 2], 0
jne 0x41de2d
mov dword [ebx + 0xae0], 2
mov dword [esp + 0x418], 0x2a
mov dword [0x4d9860], 4
mov dword [0x4d9874], 1
jmp 0x41de4a
mov dword [ebx + 0xae0], 1
mov byte [0x4d54c2], 0
jmp 0x41de4a
mov dword [ebx + 0xae0], 0
lea eax, [esp + 0x418]
cmp ebp, eax
je 0x41de86
cmp dword [ebx + 0xae0], 1
je 0x41de86
push 0
mov ecx, eax
push ecx
push 0x8000
push ebp
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov dword [esp + 0xc], eax
test eax, eax
je 0x41dc51
cmp eax, 0x8000
jae 0x41dc51
cmp dword [ebx + 0xae0], 2
je 0x41de9f
lea esi, [esp + 0xc]
lea edi, [esp + 0x418]
call fcn.00480eb0
lea edx, [esp + 0x418]
push edx
or ecx, 0xffffffff
call fcn.0047ce30
add esp, 4
mov dword [ebx + 0xac8], eax
test eax, eax
je 0x41dc51
lea eax, [esp + 0x418]
push 0x5c
push eax
call fcn.0049a6f2
mov esi, eax
add esp, 8
test esi, esi
je 0x41df03
lea edx, [esp + 0x418]
mov ecx, esi
sub ecx, edx
mov eax, edx
sar ecx, 1
push eax
call fcn.0047ce30
add esp, 4
mov dword [ebx + 0xacc], eax
test eax, eax
je 0x41dc51
add esi, 2
jmp 0x41df0a
lea esi, [esp + 0x418]
push esi
or ecx, 0xffffffff
call fcn.0047ce30
add esp, 4
mov dword [ebx + 0xad0], eax
test eax, eax
je 0x41dc51
mov ecx, 0x4af9ac
mov eax, ebp
jmp 0x41df30
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41df56
test dx, dx
je 0x41df52
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41df56
add eax, 4
add ecx, 4
test dx, dx
jne 0x41df30
xor eax, eax
jmp 0x41df5b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41df89
cmp dword [ebx + 0xae0], 1
mov eax, str.AutoHotkey_v1.1.37.00
jne 0x41df6f
mov eax, ebp
push eax
push str.____s
mov eax, 0x8000
lea ecx, [esp + 0x420]
call fcn.0047fee0
add esp, 8
lea ecx, [esp + 0x418]
push ecx
or ecx, 0xffffffff
call fcn.0047ce30
add esp, 4
xor edx, edx
test eax, eax
setne dl
pop edi
pop esi
mov dword [ebx + 0xadc], eax
pop ebp
mov eax, edx
add esp, 0x1040c
ret 4