Function at 0x43c130
Capabilities:
Extract resource via kernel32 functions
Get common file path
Get file attributes

Disassembly:
sub esp, 0x42c
push ebx
push ebp
push esi
push edi
push 0xa
push str.C974C3B7677A402D93B047DA402587C7
push dword [0x4d99e0]
mov dword [esp + 0x24], ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push 0
mov esi, eax
push esi
push dword [0x4d99e0]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push esi
push dword [0x4d99e0]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
lea edx, [esp + 0x18]
mov ecx, eax
call fcn.004af6e0
mov ebp, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ebx, eax
lea esi, [ebx + 1]
push esi
call ebp
push esi
mov dword [0x4da410], eax
call ebp
mov edi, dword [esp + 0x20]
mov esi, eax
push ebx
push edi
push dword [0x4da410]
mov dword [0x4da40c], esi
call sub.VCRUNTIME140.dll_memcpy
push ebx
push edi
push esi
call sub.VCRUNTIME140.dll_memcpy
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [0x4da410]
add esp, 0x2c
mov byte [eax + ebx], 0
mov eax, dword [0x4da40c]
push eax
mov byte [eax + ebx], 0
call dword [sym.imp.USER32.dll_CharLowerA]
mov esi, dword [esp + 0x18]
push str.Lib_
push dword [esi + 0x61c]
push 0x4da414
call fcn.0043c4c0
lea eax, [esp + 0x124]
push eax
push 0
push 0
push 5
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
movzx ecx, byte [esp + 0x124]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov byte [esp + 0x124], cl
lea ecx, [esp + 0x124]
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43c230
sub ecx, edx
je 0x43c24c
cmp byte [esp + ecx + 0x123], 0x5c
jne 0x43c24c
mov byte [esp + ecx + 0x123], al
xor ecx, ecx
nop
mov al, byte [esp + ecx + 0x124]
lea ecx, [ecx + 1]
mov byte [esp + ecx + 0x1b], al
test al, al
jne 0x43c250
push str.AutoHotkeyLib_
lea eax, [esp + 0x20]
push eax
push 0x4da41c
call fcn.0043c4c0
push str.Lib_
push dword [esi + 0x628]
push 0x4da424
call fcn.0043c4c0
push 0x206
call ebp
add esp, 4
mov esi, eax
lea eax, [esp + 0x124]
mov dword [0x4da42c], esi
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test esi, esi
je 0x43c2ce
lea ecx, [esp + 0x124]
mov eax, ecx
sub esi, eax
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [esi + ecx - 1], al
test al, al
jne 0x43c2c1
mov esi, dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsrchr]
push 0x5c
push dword [0x4da42c]
call esi
push 0x5c
mov dword [eax + 1], 0x2e62694c
mov dword [eax + 5], 0x6b6e6c
push dword [0x4da42c]
call esi
add esp, 0x10
mov byte [eax + 8], 0
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 0x14]
push eax
push 0x4c3a80
push 1
push 0
push 0x4c3a90
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x43c3e3
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
push 0x4c3aa0
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x43c3d9
push 0x105
lea eax, [esp + 0x230]
push eax
push 0xffffffffffffffff
push dword [0x4da42c]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x22c]
push 0
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
test eax, eax
js 0x43c3cf
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x124]
push 2
push 0
push 0x104
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0xc]
mov edx, dword [0x4da42c]
lea ecx, [esp + 0x124]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x43c3a0
lea ecx, [esp + 0x124]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43c3b8
mov eax, dword [0x4da42c]
sub ecx, edx
mov edx, 0x5c
mov word [ecx + eax], dx
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
push dword [0x4da42c]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
movzx edx, byte [esp + 0x1c]
mov ecx, eax
and ecx, 1
mov edi, 0x52
cmovne edx, edi
mov byte [esp + 0x1c], dl
test al, 0x20
je 0x43c415
mov byte [esp + ecx + 0x1c], 0x41
inc ecx
test al, 4
je 0x43c41f
mov byte [esp + ecx + 0x1c], 0x53
inc ecx
test al, 2
je 0x43c429
mov byte [esp + ecx + 0x1c], 0x48
inc ecx
test al, al
jns 0x43c433
mov byte [esp + ecx + 0x1c], 0x4e
inc ecx
test al, 0x10
je 0x43c43d
mov byte [esp + ecx + 0x1c], 0x44
inc ecx
test eax, 0x1000
je 0x43c44a
mov byte [esp + ecx + 0x1c], 0x4f
inc ecx
test eax, 0x800
je 0x43c457
mov byte [esp + ecx + 0x1c], 0x43
inc ecx
test eax, 0x100
je 0x43c464
mov byte [esp + ecx + 0x1c], 0x54
inc ecx
lea eax, [esp + 0x1c]
mov byte [esp + ecx + 0x1c], 0
push 0x44
push eax
call esi
add esp, 8
test eax, eax
jne 0x43c490
mov dword [0x4da430], eax
mov dword [0x4da42c], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x42c
ret 4
mov ecx, dword [0x4da42c]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43c4a0
pop edi
pop esi
sub ecx, edx
pop ebp
mov dword [0x4da430], ecx
pop ebx
add esp, 0x42c
ret 4