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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x546560]
mov ecx, 0x553dd8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push edi
test ecx, ecx
mov dword [ebp - 4], eax
je 0x504bb6
push ecx
call ebx
mov esi, eax
test esi, esi
je 0x504bb6
push esi
lea ecx, [ebp - 4]
call fcn.00405530
test eax, eax
je 0x504bb6
mov edx, dword [ebp - 4]
inc esi
push esi
push 0x553dd8
push edx
call fcn.00405400
add esp, 0xc
lea ecx, [ebp - 4]
push 0xffffffffffffffff
call fcn.00405bb0
mov eax, dword [0x54a30c]
push eax
push ecx
mov ecx, esp
push 0x546a6c
call fcn.00405730
mov ecx, 0x55e54c
call fcn.0048e4d0
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
push str.m_lang_id
push 0x546aec
mov dword [0x54a30c], eax
call fcn.0048dbb0
add esp, 0x14
mov dword [0x54a30c], eax
test eax, eax
push ecx
mov edi, esp
jne 0x504cca
mov ecx, dword [0x546560]
mov edx, str.DE_HELP
test edx, edx
mov dword [edi], ecx
je 0x504c40
push edx
call ebx
mov esi, eax
test esi, esi
je 0x504c40
push esi
mov ecx, edi
call fcn.00405530
test eax, eax
je 0x504c40
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.0048cab0
mov ecx, dword [ebp - 4]
mov esi, eax
add esp, 8
mov eax, dword [esi]
cmp ecx, eax
je 0x504c98
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x504c6b
mov edx, dword [0x546564]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x504c72
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x504c81
mov edx, dword [eax - 8]
push eax
push edx
lea ecx, [ebp - 4]
call fcn.00405870
jmp 0x504c98
lea ecx, [ebp - 4]
call fcn.00412670
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 [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x504d8f
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x504d8f
mov edx, dword [ebp - 8]
add edx, 0xfffffff4
push edx
jmp 0x504d87
mov eax, dword [0x546560]
mov ecx, str.EN_HELP
test ecx, ecx
mov dword [edi], eax
je 0x504d0a
push ecx
call ebx
mov esi, eax
test esi, esi
je 0x504d0a
push esi
mov ecx, edi
call fcn.00405530
test eax, eax
je 0x504d0a
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.0048cab0
mov ecx, dword [ebp - 4]
mov esi, eax
add esp, 8
mov eax, dword [esi]
cmp ecx, eax
je 0x504d62
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x504d35
mov edx, dword [0x546564]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x504d3c
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x504d4b
mov ecx, dword [eax - 8]
push eax
push ecx
lea ecx, [ebp - 4]
call fcn.00405870
jmp 0x504d62
lea ecx, [ebp - 4]
call fcn.00412670
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 [0x546564]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x504d8f
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x504d8f
mov eax, dword [ebp - 8]
add eax, 0xfffffff4
push eax
call fcn.00531732
add esp, 4
mov ecx, dword [0x553d9c]
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 [0x546560]
lea ecx, [ebp - 0x214]
test ecx, ecx
mov dword [ebp - 0xc], eax
je 0x504e29
lea edx, [ebp - 0x214]
shr edx, 0x10
jne 0x504def
xor eax, eax
lea ecx, [ebp - 0x214]
mov ax, cx
lea ecx, [ebp - 0xc]
push eax
call fcn.00413c90
jmp 0x504e29
lea edx, [ebp - 0x214]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
je 0x504e29
push esi
lea ecx, [ebp - 0xc]
call fcn.00405530
test eax, eax
je 0x504e29
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.00413220
lea ecx, [ebp - 8]
call fcn.00405700
mov edx, dword [ebp - 0xc]
push 0x5468e8
push edx
call fcn.005322c8
add esp, 8
lea ecx, [ebp - 4]
mov ebx, eax
push 0
call fcn.00413620
mov edi, eax
test edi, edi
jne 0x504e71
xor edx, edx
jmp 0x504e96
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.00531740
mov eax, esp
push 0
push esi
push edi
push eax
call fcn.00409f10
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.0053215e
push ebx
call fcn.005320e1
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