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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x547570]
mov ecx, 0x554e48
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push edi
test ecx, ecx
mov dword [ebp - 4], eax
je 0x505726
push ecx
call ebx
mov esi, eax
test esi, esi
je 0x505726
push esi
lea ecx, [ebp - 4]
call fcn.00405530
test eax, eax
je 0x505726
mov edx, dword [ebp - 4]
inc esi
push esi
push 0x554e48
push edx
call fcn.00405400
add esp, 0xc
lea ecx, [ebp - 4]
push 0xffffffffffffffff
call fcn.00405bb0
mov eax, dword [0x54b354]
push eax
push ecx
mov ecx, esp
push 0x547a7c
call fcn.00405730
mov ecx, 0x55f604
call fcn.0048f420
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
push str.m_lang_id
push 0x547afc
mov dword [0x54b354], eax
call fcn.0048eb00
add esp, 0x14
mov dword [0x54b354], eax
test eax, eax
push ecx
mov edi, esp
jne 0x50583a
mov ecx, dword [0x547570]
mov edx, str.DE_HELP
test edx, edx
mov dword [edi], ecx
je 0x5057b0
push edx
call ebx
mov esi, eax
test esi, esi
je 0x5057b0
push esi
mov ecx, edi
call fcn.00405530
test eax, eax
je 0x5057b0
mov eax, dword [edi]
inc esi
push esi
push str.DE_HELP
push eax
call fcn.00405400
add esp, 0xc
mov ecx, edi
push 0xffffffffffffffff
call fcn.00405bb0
lea ecx, [ebp - 8]
push ecx
call fcn.0048da00
mov ecx, dword [ebp - 4]
mov esi, eax
add esp, 8
mov eax, dword [esi]
cmp ecx, eax
je 0x505808
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x5057db
mov edx, dword [0x547574]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x5057e2
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x5057f1
mov edx, dword [eax - 8]
push eax
push edx
lea ecx, [ebp - 4]
call fcn.00405870
jmp 0x505808
lea ecx, [ebp - 4]
call fcn.004124c0
mov esi, dword [esi]
mov dword [ebp - 4], esi
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [ebp - 8]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x5058ff
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x5058ff
mov edx, dword [ebp - 8]
add edx, 0xfffffff4
push edx
jmp 0x5058f7
mov eax, dword [0x547570]
mov ecx, str.EN_HELP
test ecx, ecx
mov dword [edi], eax
je 0x50587a
push ecx
call ebx
mov esi, eax
test esi, esi
je 0x50587a
push esi
mov ecx, edi
call fcn.00405530
test eax, eax
je 0x50587a
mov edx, dword [edi]
inc esi
push esi
push str.EN_HELP
push edx
call fcn.00405400
add esp, 0xc
mov ecx, edi
push 0xffffffffffffffff
call fcn.00405bb0
lea eax, [ebp - 8]
push eax
call fcn.0048da00
mov ecx, dword [ebp - 4]
mov esi, eax
add esp, 8
mov eax, dword [esi]
cmp ecx, eax
je 0x5058d2
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x5058a5
mov edx, dword [0x547574]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x5058ac
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x5058bb
mov ecx, dword [eax - 8]
push eax
push ecx
lea ecx, [ebp - 4]
call fcn.00405870
jmp 0x5058d2
lea ecx, [ebp - 4]
call fcn.004124c0
mov esi, dword [esi]
mov dword [ebp - 4], esi
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [ebp - 8]
mov ecx, dword [0x547574]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x5058ff
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x5058ff
mov eax, dword [ebp - 8]
add eax, 0xfffffff4
push eax
call fcn.00532222
add esp, 4
mov ecx, dword [0x554e0c]
lea edx, [ebp - 0x214]
mov dword [ebp - 0x214], ecx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x210]
push edx
push 0x104
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, dword [0x547570]
lea ecx, [ebp - 0x214]
test ecx, ecx
mov dword [ebp - 0xc], eax
je 0x505999
lea edx, [ebp - 0x214]
shr edx, 0x10
jne 0x50595f
xor eax, eax
lea ecx, [ebp - 0x214]
mov ax, cx
lea ecx, [ebp - 0xc]
push eax
call fcn.00413ae0
jmp 0x505999
lea edx, [ebp - 0x214]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
je 0x505999
push esi
lea ecx, [ebp - 0xc]
call fcn.00405530
test eax, eax
je 0x505999
mov edi, dword [ebp - 0xc]
lea ecx, [esi + esi]
mov eax, ecx
lea esi, [ebp - 0x214]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push str.tmp_htm__q_dir_hlp_z.html
lea ecx, [ebp - 8]
call fcn.00405730
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
call fcn.00413070
lea ecx, [ebp - 8]
call fcn.00405700
mov edx, dword [ebp - 0xc]
push 0x5478f8
push edx
call fcn.00532db8
add esp, 8
lea ecx, [ebp - 4]
mov ebx, eax
push 0
call fcn.00413470
mov edi, eax
test edi, edi
jne 0x5059e1
xor edx, edx
jmp 0x505a06
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and al, 0xfc
call fcn.00532230
mov eax, esp
push 0
push esi
push edi
push eax
call fcn.00409eb0
mov edx, eax
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 1
push edx
call fcn.00532c4e
push ebx
call fcn.00532bd1
mov eax, dword [ebp - 0xc]
add esp, 0x14
push 3
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0xc]
call fcn.00405700
lea ecx, [ebp - 4]
call fcn.00405700
lea ecx, [ebp + 8]
call fcn.00405700
lea esp, [ebp - 0x220]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret