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

Disassembly:
sub esp, 0x428
push ebx
push ebp
push esi
push edi
push 0xa
push str.C974C3B7677A402D93B047DA402587C7
push dword [0x4e79b8]
mov ebp, ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push 0
mov esi, eax
push esi
push dword [0x4e79b8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push esi
push dword [0x4e79b8]
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.0049da40
mov ebx, eax
lea esi, [ebx + 1]
push esi
call fcn.004b2c3e
push esi
mov dword [0x4e83e8], eax
call fcn.004b2c3e
mov edi, dword [esp + 0x20]
mov esi, eax
push ebx
push edi
push dword [0x4e83e8]
mov dword [0x4e83e4], esi
call fcn.004b19e0
push ebx
push edi
push esi
call fcn.004b19e0
push edi
call fcn.004b2343
mov eax, dword [0x4e83e8]
add esp, 0x2c
mov byte [eax + ebx], 0
mov eax, dword [0x4e83e4]
push eax
mov byte [eax + ebx], 0
call dword [sym.imp.USER32.dll_CharLowerA]
push str.Lib_
push dword [ebp + 0x61c]
push 0x4e83ec
call fcn.00437b10
lea eax, [esp + 0x120]
push eax
push 0
push 0
push 5
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
movzx ecx, byte [esp + 0x120]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov byte [esp + 0x120], cl
lea ecx, [esp + 0x120]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x437874
sub ecx, edx
je 0x437890
cmp byte [esp + ecx + 0x11f], 0x5c
jne 0x437890
mov byte [esp + ecx + 0x11f], al
xor ecx, ecx
mov al, byte [esp + ecx + 0x120]
lea ecx, [ecx + 1]
mov byte [esp + ecx + 0x17], al
test al, al
jne 0x437892
push str.AutoHotkeyLib_
lea eax, [esp + 0x1c]
push eax
push 0x4e83f4
call fcn.00437b10
push str.Lib_
push dword [ebp + 0x628]
push 0x4e83fc
call fcn.00437b10
push 0x206
call fcn.004b2c3e
add esp, 4
mov esi, eax
lea eax, [esp + 0x120]
mov dword [0x4e8404], esi
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test esi, esi
je 0x437913
lea ecx, [esp + 0x120]
mov eax, ecx
sub esi, eax
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [esi + ecx - 1], al
test al, al
jne 0x437906
push 0x5c
push dword [0x4e8404]
call fcn.004b4423
mov ecx, dword [str.Lib.lnk]
push 0x5c
mov dword [eax + 1], ecx
mov ecx, dword [0x4d8ae8]
mov dword [eax + 5], ecx
push dword [0x4e8404]
call fcn.004b4423
add esp, 0x10
mov byte [eax + 8], 0
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 0x14]
push eax
push 0x4ca930
push 1
push 0
push 0x4ca940
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x437a33
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
push 0x4ca950
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x437a29
push 0x105
lea eax, [esp + 0x22c]
push eax
push 0xffffffffffffffff
push dword [0x4e8404]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x228]
push 0
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
test eax, eax
js 0x437a1f
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x120]
push 2
push 0
push 0x104
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0xc]
mov edx, dword [0x4e8404]
lea ecx, [esp + 0x120]
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x4379f0
lea ecx, [esp + 0x120]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x437a08
mov eax, dword [0x4e8404]
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 [0x4e8404]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
movzx edx, byte [esp + 0x18]
mov ecx, eax
and ecx, 1
mov esi, 0x52
cmovne edx, esi
mov byte [esp + 0x18], dl
test al, 0x20
je 0x437a65
mov byte [esp + ecx + 0x18], 0x41
inc ecx
test al, 4
je 0x437a6f
mov byte [esp + ecx + 0x18], 0x53
inc ecx
test al, 2
je 0x437a79
mov byte [esp + ecx + 0x18], 0x48
inc ecx
test al, al
jns 0x437a83
mov byte [esp + ecx + 0x18], 0x4e
inc ecx
test al, 0x10
je 0x437a8d
mov byte [esp + ecx + 0x18], 0x44
inc ecx
test eax, 0x1000
je 0x437a9a
mov byte [esp + ecx + 0x18], 0x4f
inc ecx
test eax, 0x800
je 0x437aa7
mov byte [esp + ecx + 0x18], 0x43
inc ecx
test eax, 0x100
je 0x437ab4
mov byte [esp + ecx + 0x18], 0x54
inc ecx
lea eax, [esp + 0x18]
mov byte [esp + ecx + 0x18], 0
push 0x44
push eax
call fcn.004b4423
add esp, 8
test eax, eax
jne 0x437ae3
mov dword [0x4e8408], eax
mov dword [0x4e8404], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x428
ret 4
mov ecx, dword [0x4e8404]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x437af0
pop edi
pop esi
sub ecx, edx
pop ebp
mov dword [0x4e8408], ecx
pop ebx
add esp, 0x428
ret 4