Function at 0x417af0
Capabilities:
Extract resource via kernel32 functions
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aff38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x278
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov eax, dword [esi + 0xac8]
mov byte [esi + 0x278], 1
mov word [esi + 0xae0], 0
test eax, eax
je 0x418170
cmp word [eax], 0
je 0x418170
mov ecx, 0x14
call fcn.004798b0
mov dword [ebp - 0x14], eax
test eax, eax
je 0x417b73
mov dword [eax], vtable.Label.0
mov dword [eax + 4], 0x4b70dc
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
jmp 0x417b75
xor eax, eax
mov dword [esi + 0x638], eax
test eax, eax
je 0x418170
cmp byte [0x4dcd9e], 0
mov ebx, 0x4cc5e4
jne 0x417b97
mov ebx, dword [esi + 0xac8]
mov eax, dword [0x4de97c]
mov dword [ebp - 0x70], vtable.TextStream.0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0xffffffff
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
cmp eax, 0xffffffff
je 0x417be7
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x60], eax
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
neg eax
sbb al, al
and byte [ebp - 0x56], al
mov dword [ebp - 0x70], vtable.TextMem.0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
push 0xa
mov dword [ebp - 4], 0
push str._AUTOHOTKEY_SCRIPT_
push 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x20], 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x417c4d
push 0xa
push 0x4cc684
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x418120
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x418120
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x418120
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x418120
push 0xfde9
push 0xc
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x70]
call fcn.00479c30
mov eax, dword [esi + 0xac8]
mov ecx, esi
inc dword [0x4ddc00]
mov dword [0x4ddc04], eax
lea eax, [ebp - 0x70]
push eax
call fcn.00418190
mov dword [ebp - 4], 0xffffffff
mov edi, eax
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x70], vtable.TextMem.0
test ecx, ecx
je 0x417ce0
cmp byte [ebp - 0x34], 0
je 0x417cd9
push ecx
call fcn.0049b8d4
add esp, 4
mov dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x70], vtable.TextStream.0
test eax, eax
je 0x417cf7
push eax
call fcn.0049b8d4
add esp, 4
cmp edi, 1
jne 0x418170
push 0
push 0
push 0
push 0x68
mov ecx, esi
call fcn.0041df30
test eax, eax
je 0x418170
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ecx]
test ebx, ebx
je 0x417dc9
xor edx, edx
mov dword [ebp - 0x14], edx
cmp byte [ebx + 1], dl
jbe 0x417da4
xor eax, eax
mov dword [ebp - 0x18], eax
mov edi, dword [ebx + 8]
add edi, eax
cmp byte [edi + 1], 0
je 0x417d8f
mov esi, dword [edi + 8]
test esi, esi
je 0x417d76
cmp dword [esi], 0
je 0x417d76
nop word [eax + eax]
cmp byte [esi + 8], 0
je 0x417d6e
movzx eax, word [esi + 0xa]
push 0
push eax
push dword [esi]
call fcn.004216b0
mov dword [esi + 4], eax
test eax, eax
je 0x417db1
mov ecx, dword [ebp - 0x10]
add esi, 0xc
cmp dword [esi], 0
jne 0x417d50
push edi
mov ecx, ebx
call fcn.00424780
test eax, eax
je 0x418170
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
add eax, 0x10
inc edx
mov dword [ebp - 0x18], eax
movzx eax, byte [ebx + 1]
cmp edx, eax
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x18]
jl 0x417d33
mov ebx, dword [ebx + 0x14]
test ebx, ebx
jne 0x417d24
jmp 0x417dc9
push dword [esi]
mov ecx, ebx
push 0
push str.Call_to_nonexistent_function.
call fcn.0042ff20
test eax, eax
je 0x418170
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebx]
test ecx, ecx
je 0x417e21
mov al, byte [ecx]
mov edx, dword [ecx + 0x14]
mov esi, dword [ecx + 0x10]
cmp al, 8
je 0x417de7
cmp al, 0xe3
jne 0x417e1b
mov byte [ecx], 0x11
jmp 0x417e04
mov al, byte [ecx + 0xc]
mov byte [ecx], al
mov eax, dword [ebx + 0xc]
mov dword [ecx + 0x10], eax
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x417dfe
mov dword [eax + 0x14], ecx
jmp 0x417e01
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], ecx
test esi, esi
je 0x417e0d
mov dword [esi + 0x14], edx
jmp 0x417e0f
mov dword [ebx], edx
test edx, edx
je 0x417e18
mov dword [edx + 0x10], esi
jmp 0x417e1b
mov dword [ebx + 4], esi
mov ecx, edx
test edx, edx
jne 0x417dd2
cmp dword [ebx + 8], 0
je 0x417e3c
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebx]
mov dword [ecx + 0x14], eax
mov ecx, dword [ebx]
mov eax, dword [ebx + 0xc]
mov dword [ecx + 0x10], eax
mov eax, dword [ebx + 8]
mov dword [ebx], eax
xor edi, edi
cmp dword [ebx + 0x1c], edi
jle 0x417e79
mov eax, dword [ebx + 0x18]
mov esi, dword [eax + edi*4]
cmp byte [esi + 0x3d], 0
jne 0x417e73
test byte [esi + 0x3c], 4
jne 0x417e73
lea eax, [esi + 0x28]
mov ecx, ebx
push eax
push dword [esi + 0x1c]
push esi
call fcn.00430b40
lea eax, [esi + 0x30]
mov ecx, ebx
push eax
push dword [esi + 0x20]
push esi
call fcn.00430b40
inc edi
cmp edi, dword [ebx + 0x1c]
jl 0x417e43
mov eax, dword [ebx + 0x264]
test eax, eax
je 0x417f1d
cmp dword [eax + 0x10], 0
je 0x417f07
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov esi, dword [eax + 8]
test ecx, ecx
je 0x417f07
lea eax, [ebp - 0x14]
mov dword [ebp - 0x78], 5
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x80], str.__Class
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x7c], 0
push eax
lea eax, [ebp - 0x280]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.00476a50
test eax, eax
je 0x417ee8
mov ecx, dword [eax + 4]
xor edi, edi
cmp dword [eax + 0xc], 5
mov edx, dword [eax]
cmove ecx, edi
mov dword [ebx + 0x274], edx
mov dword [ebx + 0x270], ecx
push esi
push str.Unknown_class.
mov ecx, ebx
mov dword [ebx + 0x634], 0
call fcn.004302e0
test eax, eax
je 0x418170
mov eax, dword [ebx + 0x264]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov dword [ebx + 0x264], 0
cmp dword [0x4dcda0], 0
je 0x418030
push 0
push 3
push 0
push 0
push str.A_Args
mov ecx, ebx
call fcn.004230f0
mov edi, dword [ebx]
mov edx, eax
mov dword [ebp - 0x10], edx
test edi, edi
je 0x418030
nop dword [eax]
cmp byte [edi + 1], 0
mov dword [ebp - 0x14], 0
jbe 0x418025
xor eax, eax
mov dword [ebp - 0x18], eax
mov esi, dword [edi + 8]
add esi, eax
cmp byte [esi], 2
jne 0x417faf
mov eax, dword [esi + 4]
cmp word [eax], 0
jne 0x418008
mov eax, dword [esi + 8]
cmp byte [eax + 0x17], 0
jne 0x417f8b
mov ecx, dword [eax + 0xc]
jmp 0x417f8d
mov ecx, eax
test byte [ecx + 0x15], 2
je 0x418008
cmp eax, edx
je 0x418008
push edi
push dword [eax + 0x18]
mov ecx, ebx
push str.Class_may_be_overwritten.
push dword [0x4dcda0]
call fcn.00430950
jmp 0x418008
cmp byte [esi + 1], 0
je 0x418008
mov esi, dword [esi + 0xc]
mov eax, dword [esi + 8]
cmp eax, 0x41
je 0x418008
cmp eax, 4
jne 0x417ffd
cmp dword [esi + 4], 0
je 0x417ffd
mov eax, dword [esi]
cmp byte [eax + 0x17], 0
jne 0x417fd8
mov ecx, dword [eax + 0xc]
jmp 0x417fda
mov ecx, eax
test byte [ecx + 0x15], 2
je 0x417ffd
cmp eax, edx
je 0x417ffd
push edi
push dword [eax + 0x18]
mov ecx, ebx
push str.Class_may_be_overwritten.
push dword [0x4dcda0]
call fcn.00430950
mov edx, dword [ebp - 0x10]
mov eax, dword [esi + 0x18]
add esi, 0x10
cmp eax, 0x41
jne 0x417fc0
mov edx, dword [ebp - 0x14]
movzx eax, byte [edi + 1]
inc edx
add dword [ebp - 0x18], 0x10
cmp edx, eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0x10]
jl 0x417f66
mov edi, dword [edi + 0x14]
test edi, edi
jne 0x417f50
push dword [0x4dc448]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
inc dword [ebx + 0x274]
mov ecx, ebx
push 0
push 0
push 0
push 0x68
call fcn.0041df30
test eax, eax
je 0x418170
push 0
push 0
push 0
push 0x68
mov ecx, ebx
call fcn.0041df30
test eax, eax
je 0x418170
mov ecx, dword [ebx + 0x638]
mov eax, dword [ebx + 4]
push 0
push 0
mov dword [ecx + 8], eax
mov ecx, ebx
push 0
push dword [ebx]
call fcn.00423a90
test eax, eax
je 0x418170
push dword [ebx]
mov ecx, ebx
call fcn.00423ec0
test eax, eax
je 0x418170
lea eax, [ebp - 0x19]
mov ecx, ebx
push eax
push 3
lea eax, [ebp - 0x14]
push eax
push 0
push 0x4cc5e8
call fcn.004230f0
test eax, eax
jne 0x4180d9
cmp byte [ebp - 0x19], al
mov ecx, ebx
setne al
inc eax
push eax
push dword [ebp - 0x14]
push 0
push 0x4cc5e8
call fcn.00423370
mov dword [0x4dc408], eax
test eax, eax
je 0x418170
push 1
push 0
push 0xffffffffffffffff
push 0x4b716c
mov ecx, eax
call fcn.0047faa0
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov ecx, dword [ebp - 0x24]
call fcn.00414d20
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push ebx
xorps xmm3, xmm3
xor edx, edx
mov ecx, str.Could_not_extract_script_from_EXE.
call fcn.00481980
mov eax, dword [ebp - 0x3c]
add esp, 8
mov dword [ebp - 0x70], vtable.TextMem.0
test eax, eax
je 0x418159
cmp byte [ebp - 0x34], 0
je 0x418152
push eax
call fcn.0049b8d4
add esp, 4
mov dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x70], vtable.TextStream.0
test eax, eax
je 0x418170
push eax
call fcn.0049b8d4
add esp, 4
mov ecx, dword [ebp - 0xc]
or eax, 0xffffffff
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret