Function at 0x437ed0
Capabilities:
Extract resource via kernel32 functions
Get file attributes

Disassembly:
sub esp, 0x420
push ebx
push ebp
push esi
push edi
push 0xa
push str.C974C3B7677A402D93B047DA402587C7
push dword [0x507b10]
mov ebp, ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push 0
mov esi, eax
push esi
push dword [0x507b10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push esi
push dword [0x507b10]
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.0049f130
mov ebx, eax
lea esi, [ebx + 1]
push esi
call fcn.004bb7a0
push esi
mov dword [0x5085b8], eax
call fcn.004bb7a0
mov edi, dword [esp + 0x20]
mov esi, eax
push ebx
push edi
push dword [0x5085b8]
mov dword [0x5085b4], esi
call fcn.004b9800
push ebx
push edi
push esi
call fcn.004b9800
push edi
call fcn.004bb7ab
mov eax, dword [0x5085b8]
add esp, 0x2c
mov byte [eax + ebx], 0
mov eax, dword [0x5085b4]
push eax
mov byte [eax + ebx], 0
call dword [sym.imp.USER32.dll_CharLowerA]
push str.Lib_
push dword [ebp + 0xae4]
push 0x5085bc
call fcn.00438180
lea eax, [esp + 0x228]
push 0
push eax
call fcn.0045d260
add esp, 8
lea eax, [esp + 0x228]
push str.AutoHotkeyLib_
push eax
push 0x5085c4
call fcn.00438180
push str.Lib_
push dword [ebp + 0xaf0]
push 0x5085cc
call fcn.00438180
push 0x40c
call fcn.004bb7a0
add esp, 4
mov esi, eax
lea eax, [esp + 0x18]
mov dword [0x5085d4], esi
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test esi, esi
je 0x438010
lea ecx, [esp + 0x18]
mov eax, ecx
sub esi, eax
nop
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [esi + ecx - 2], ax
test ax, ax
jne 0x438000
push 0x5c
push dword [0x5085d4]
call fcn.004b7194
movups xmm0, xmmword [str.Lib.lnk]
push 0x5c
movups xmmword [eax + 2], xmm0
push dword [0x5085d4]
call fcn.004b7194
add esp, 0x10
xor ecx, ecx
mov word [eax + 0x10], cx
push ecx
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 0x14]
push eax
push 0x4d4940
push 1
push 0
push 0x4d4950
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4380ff
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
push 0x4d4960
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x4380f5
mov eax, dword [esp + 0x10]
push 0
push dword [0x5085d4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
test eax, eax
js 0x4380eb
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
push 2
push 0
push 0x104
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0xc]
mov edx, dword [0x5085d4]
lea ecx, [esp + 0x18]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx], ax
lea edx, [edx + 2]
test ax, ax
jne 0x4380b5
lea ecx, [esp + 0x18]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4380d0
mov eax, dword [0x5085d4]
sub ecx, edx
sar ecx, 1
mov dword [eax + ecx*2], 0x5c
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 [0x5085d4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edx, eax
lea ecx, [esp + 0x228]
call fcn.0049cc60
push 0x44
push eax
call fcn.004b7194
add esp, 8
test eax, eax
jne 0x438145
mov dword [0x5085d8], eax
mov dword [0x5085d4], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x420
ret 4
mov eax, dword [0x5085d4]
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x438150
pop edi
pop esi
sub eax, edx
sar eax, 1
pop ebp
mov dword [0x5085d8], eax
pop ebx
add esp, 0x420
ret 4