Function at 0x412510
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x624
mov eax, dword [0x48106c]
xor eax, esp
mov dword [esp + reloc.USER32.dll_PeekMessageA], eax
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + reloc.USER32.dll_PeekMessageA], 0
je 0x41255b
mov eax, dword [esi + reloc.USER32.dll_PeekMessageA]
test eax, eax
jns 0x412559
mov ecx, dword [esi + reloc.USER32.dll_PeekMessageA]
test ecx, ecx
je 0x41255b
call fcn.0040fea0
mov dword [esi + reloc.USER32.dll_PeekMessageA], eax
test eax, eax
jne 0x41257a
cmp dword [esi + reloc.USER32.dll_PeekMessageA], 0
je 0x41257a
push str.no_contents_n
call fcn.0041d210
add esp, 4
mov ecx, esi
push 0xffffffffffffffff
call fcn.004147b0
mov eax, dword [0x4739f8]
mov dword [esp + 0x10], eax
mov eax, dword [0x4739fc]
push 0x200
mov dword [esp + 0x18], eax
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.0043ffb0
add esp, 0xc
cmp dword [esi + reloc.USER32.dll_PeekMessageA], 0
je 0x4125e4
mov ecx, dword [esi + reloc.USER32.dll_PeekMessageA]
test ecx, ecx
je 0x4125d2
lea edx, [esp + 0x10]
sub edx, ecx
nop dword [eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x4125c0
jmp 0x41264d
lea eax, [esp + 0x10]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
jmp 0x41264d
push 0
push 0x10
lea eax, [esp + 0x18]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp + 0x10]
mov ecx, esi
push eax
push 0x485
call fcn.00425960
lea eax, reloc.USER32.dll_PeekMessageA
mov ecx, 0xe
push eax
call fcn.0041d5f0
push eax
mov edx, 0x485
mov ecx, esi
call fcn.00414eb0
add esp, 8
test eax, eax
je 0x41275e
push 0x104
lea eax, [esp + 0x14]
mov ecx, esi
push eax
push 0x485
call fcn.00425920
test eax, eax
je 0x41275e
cmp dword [esi + reloc.USER32.dll_PeekMessageA], 0
je 0x4126a1
mov eax, dword [esi + reloc.USER32.dll_PeekMessageA]
mov ecx, 0x479dc8
test eax, eax
mov edx, 0x473a0c
cmovne ecx, eax
cmp dword [esi + reloc.USER32.dll_PeekMessageA], 0
mov eax, str._x64
cmove eax, edx
push eax
push ecx
call fcn.00421eb0
add esp, 4
push eax
push str.FastCopy_s_s
call fcn.0041fea0
add esp, 8
lea ecx, [esp + 0x14]
xor edx, edx
push eax
call fcn.0041f690
add esp, 8
lea ecx, [esp + 0x10]
call fcn.00427070
mov edi, 0x481a50
nop
push ecx
push dword [edi]
lea edx, [esp + 0x18]
lea ecx, reloc.USER32.dll_PeekMessageA
call fcn.0041f690
add esp, 8
lea eax, reloc.USER32.dll_PeekMessageA
mov ecx, esi
push eax
push dword [edi]
call fcn.00412bd0
lea eax, [esp + 0xc]
push eax
lea eax, reloc.USER32.dll_PeekMessageA
push eax
lea edx, reloc.USER32.dll_PeekMessageA
lea ecx, reloc.USER32.dll_PeekMessageA
call fcn.004278c0
add esp, 8
test eax, eax
je 0x412744
add edi, 4
cmp edi, str.TLIB_XXVAL_STATUS_k_Gm
jne 0x4126b0
cmp dword [esi + reloc.USER32.dll_PeekMessageA], 0
jne 0x412726
push 5
push 0
push 0
lea eax, [esp + 0x1c]
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0
mov ecx, esi
call fcn.004147b0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + reloc.USER32.dll_PeekMessageA]
xor ecx, esp
call fcn.0043c755
mov esp, ebp
pop ebp
ret
mov ecx, 7
call fcn.0041d5f0
push eax
lea eax, reloc.USER32.dll_PeekMessageA
mov ecx, esi
push eax
call fcn.00412780
mov ecx, dword [esp + reloc.USER32.dll_PeekMessageA]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0043c755
mov esp, ebp
pop ebp
ret