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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4eb1a2
mov eax, dword fs:[0]
push eax
sub esp, 0x468
mov eax, dword [0x6089a0]
xor eax, esp
mov dword [esp + 0x460], eax
push ebx
push esi
push edi
mov eax, dword [0x6089a0]
xor eax, esp
push eax
lea eax, [esp + 0x478]
mov dword fs:[0], eax
mov eax, dword [ecx]
mov edx, dword [eax + 8]
mov dword [esp + 0x14], ecx
call edx
mov esi, eax
xor edi, edi
cmp esi, edi
je 0x4c5c69
mov eax, dword [esi + 0xc8]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push edi
push edi
push 0x1032
push eax
call ebx
cmp eax, 1
mov ecx, dword [esi + 0xc8]
jne 0x4c596e
push 2
push 0xffffffffffffffff
push 0x100c
push ecx
call ebx
mov edx, dword [esi + 0xc8]
add eax, 1
push 2
lea edi, [eax - 1]
push edi
push 0x100c
push edx
call ebx
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 8]
xor ebx, ebx
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], ebx
mov edx, dword [ecx]
mov edx, dword [edx + 8]
push eax
push edi
call edx
test eax, eax
je 0x4c5c69
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x3c]
lea edx, [esp + 0x24]
push edx
call eax
lea esi, [esp + 0x18]
mov dword [esp + 0x480], ebx
call fcn.004b23b0
push 0x5b093c
push eax
lea ecx, [esp + 0x48]
push ecx
mov byte [esp + 0x48c], 1
call fcn.00401030
add esp, 0xc
mov ecx, esi
mov byte [esp + 0x480], 3
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
push 0x5b0958
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_283]
lea edx, [esp + 0x20]
push edx
lea edi, [esp + 0x28]
mov byte [esp + 0x484], 4
call fcn.00402b60
add esp, 4
lea ecx, [esp + 0x18]
push ecx
mov edi, eax
mov byte [esp + 0x484], 5
call fcn.00402ae0
add esp, 4
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x484], 6
call dword [sym.imp.MFC80U.DLL_Ordinal_896]
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x40]
push 1
push ebx
push edx
push eax
push 0x5b0960
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [esp + 0x40]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
jmp 0x4c5c69
push edi
push edi
push 0x1032
push ecx
call ebx
cmp eax, 1
jbe 0x4c5c69
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x480], 7
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
push esi
lea edi, [esp + 0x34]
mov byte [esp + 0x484], 8
call fcn.004bbd00
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
cmp edi, eax
mov ebx, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
jbe 0x4c59d0
call ebx
mov eax, dword [esp + 0x38]
mov edi, edi
cmp dword [esp + 0x34], eax
mov esi, eax
jbe 0x4c59de
call ebx
mov eax, dword [esp + 0x38]
cmp edi, esi
je 0x4c5a74
cmp edi, eax
jb 0x4c59ec
call ebx
mov edx, dword [esp + 0x14]
mov eax, dword [edi]
mov ecx, dword [edx + 8]
lea esi, [esp + 0x10]
mov dword [esp + 0x10], 0
mov edx, dword [ecx]
push esi
push eax
mov eax, dword [edx + 8]
call eax
test eax, eax
je 0x4c5a5e
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x44]
call eax
cmp eax, 4
je 0x4c5a23
cmp eax, 3
jne 0x4c5a5e
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov edx, dword [edx + 0x3c]
lea eax, [esp + 0x24]
push eax
call edx
mov ebx, eax
lea esi, [esp + 0x44]
mov byte [esp + 0x480], 9
call fcn.00402e70
lea ecx, [esp + 0x24]
mov byte [esp + 0x480], 8
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov ebx, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x38]
cmp edi, eax
jb 0x4c5a6c
call ebx
mov eax, dword [esp + 0x38]
add edi, 4
jmp 0x4c59d0
xor esi, esi
push 0x206
lea eax, [esp + 0x62]
push esi
push eax
mov word [esp + 0x68], si
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x104
lea ecx, [esp + 0x268]
push esi
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
lea edx, [esp + 0x20]
push edx
push 5
push esi
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov eax, dword [esp + 0x20]
cmp eax, esi
je 0x4c5ae6
lea ecx, [esp + 0x5c]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x4c5ae6
push 0x104
lea edx, [esp + 0x268]
push edx
lea eax, [esp + 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
lea ecx, [esp + 0x264]
push ecx
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC80U.DLL_Ordinal_283]
push str._temp.qpl
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x1c]
mov bl, 0xa
push eax
mov byte [esp + 0x48c], bl
call fcn.00401030
add esp, 0xc
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x484], 0xb
call dword [sym.imp.MFC80U.DLL_Ordinal_774]
lea ecx, [esp + 0x14]
mov byte [esp + 0x480], bl
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea edx, [esp + 0x44]
lea ecx, [esp + 0x1c]
call fcn.004b24c0
lea esi, [esp + 0x14]
call fcn.004b23b0
push 0x5b0980
push eax
lea ecx, [esp + 0x20]
push ecx
mov byte [esp + 0x48c], 0xc
call fcn.00401030
add esp, 0xc
mov ecx, esi
mov byte [esp + 0x480], 0xe
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
push 0x5b099c
lea ecx, [esp + 0x2c]
call dword [sym.imp.MFC80U.DLL_Ordinal_283]
lea edx, [esp + 0x58]
push edx
lea edi, [esp + 0x20]
mov byte [esp + 0x484], 0xf
call fcn.00402b60
add esp, 4
lea ecx, [esp + 0x54]
push ecx
mov edi, eax
mov byte [esp + 0x484], 0x10
call fcn.00402ae0
add esp, 4
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x484], 0x11
call dword [sym.imp.MFC80U.DLL_Ordinal_896]
lea ecx, [esp + 0x54]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [esp + 0x58]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x18]
push 1
xor ebx, ebx
push ebx
push edx
push eax
push 0x5b09a4
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [esp + 0x28]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov esi, dword [esp + 0x48]
cmp esi, ebx
je 0x4c5c4c
mov edi, dword [esp + 0x4c]
cmp esi, edi
je 0x4c5c43
lea esp, [esp]
mov ecx, esi
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
add esi, 4
cmp esi, edi
jne 0x4c5c30
mov esi, dword [esp + 0x48]
push esi
call sub.MFC80U.DLL_Ordinal_764
add esp, 4
mov eax, dword [esp + 0x34]
cmp eax, ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
je 0x4c5c69
push eax
call sub.MFC80U.DLL_Ordinal_764
add esp, 4
mov ecx, dword [esp + 0x478]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x460]
xor ecx, esp
call fcn.00432b8e
mov esp, ebp
pop ebp
ret