Function at 0x4388b3
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe8
mov eax, dword [0x5836e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0xe8], edi
test edi, edi
je 0x438e02
mov eax, dword [0x5a249c]
test eax, eax
jne 0x4388fa
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x5a249c], eax
test eax, eax
je 0x438e02
mov ecx, dword [0x5a24a0]
test ecx, ecx
je 0x43892c
cmp dword [0x5a24a4], 0
je 0x43892c
cmp dword [0x5a24a8], 0
je 0x43892c
cmp dword [0x5a24ac], 0
je 0x43892c
cmp dword [0x5a24b0], 0
jne 0x4389c4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5303fc
push eax
call esi
push 0x53040c
push dword [0x5a249c]
mov dword [0x5a24a0], eax
call esi
push 0x530418
push dword [0x5a249c]
mov dword [0x5a24a4], eax
call esi
push 0x53042c
push dword [0x5a249c]
mov dword [0x5a24a8], eax
call esi
push str.RegQueryInfoKeyW
push dword [0x5a249c]
mov dword [0x5a24ac], eax
call esi
mov ecx, dword [0x5a24a0]
mov dword [0x5a24b0], eax
test ecx, ecx
je 0x438e02
cmp dword [0x5a24a4], 0
je 0x438e02
cmp dword [0x5a24a8], 0
je 0x438e02
cmp dword [0x5a24ac], 0
je 0x438e02
test eax, eax
je 0x438e02
mov bl, byte [ebp + 8]
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0xd0]
xor esi, esi
push eax
mov eax, 0x20019
mov dword [ebp - 0xd0], esi
push esi
test bl, bl
mov dword [ebp - 0xd8], esi
lea edx, [eax - 0x13]
cmovne eax, edx
push eax
push esi
push esi
push esi
push str.SoftwareConEmu
push SysReAllocString
call ecx
mov ecx, eax
test ecx, ecx
jne 0x438e02
cmp dword [ebp - 0xd0], esi
je 0x438e02
test bl, bl
jne 0x438a91
lea eax, [ebp - 0xe4]
mov dword [ebp - 0xe4], esi
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp - 0xd0]
mov dword [ebp - 0xe0], esi
call dword [0x5a24b0]
mov ecx, eax
test ecx, ecx
jne 0x438a7f
cmp dword [edi + 0x38], esi
jne 0x438a54
cmp dword [edi + 0x34], esi
je 0x438a7f
lea edx, [ebp - 0xe4]
mov eax, dword [edx]
cmp eax, dword [edi + 0x34]
jne 0x438a7f
mov eax, dword [edx + 4]
cmp eax, dword [edi + 0x38]
jne 0x438a7f
push dword [ebp - 0xd0]
call dword [0x5a24a4]
cmp dword [edi], esi
setne al
jmp 0x438e04
mov eax, dword [ebp - 0xe4]
mov dword [edi + 0x34], eax
mov eax, dword [ebp - 0xe0]
mov dword [edi + 0x38], eax
mov dword [ebp - 0xc4], str.DefTerm_Enabled
lea eax, [edi + 4]
mov dword [ebp - 0xb0], eax
lea eax, [edi + 8]
mov dword [ebp - 0xa0], eax
lea eax, [edi + 0xc]
mov dword [ebp - 0x90], eax
lea eax, [edi + 0x10]
mov dword [ebp - 0x80], eax
lea eax, [edi + 0x14]
mov dword [ebp - 0x70], eax
lea eax, [edi + 0x18]
mov dword [ebp - 0x60], eax
lea eax, [edi + 0x1c]
mov dword [ebp - 0x50], eax
lea eax, [edi + 0x20]
mov dword [ebp - 0x40], eax
lea eax, [edi + 0x24]
mov dword [ebp - 0x30], eax
lea eax, [edi + 0x28]
mov dword [ebp - 0x20], eax
lea eax, [edi + 0x2c]
mov dword [ebp - 0xc0], edi
mov dword [ebp - 0xb4], str.DefTerm_Agressive
mov dword [ebp - 0xa4], str.DefTerm_NoInjects
mov dword [ebp - 0x94], str.DefTerm_NewWindow
mov dword [ebp - 0x84], str.DefTerm_DebugLog
mov dword [ebp - 0x74], str.DefTerm_Confirm
mov dword [ebp - 0x64], str.DefTerm_Flags
mov dword [ebp - 0x54], str.DefTerm_ConEmuExe
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], 1
mov dword [ebp - 0x44], str.DefTerm_BaseDir
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x34], str.DefTerm_CfgFile
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x24], str.DefTerm_Config
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], str.DefTerm_AppList
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], 7
push 4
pop edx
mov dword [ebp - 0xbc], edx
mov dword [ebp - 0xb8], edx
mov dword [ebp - 0xac], edx
mov dword [ebp - 0xa8], edx
mov dword [ebp - 0x9c], edx
mov dword [ebp - 0x98], edx
mov dword [ebp - 0x8c], edx
mov dword [ebp - 0x88], edx
mov dword [ebp - 0x7c], edx
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x6c], edx
mov dword [ebp - 0x68], edx
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x58], edx
test bl, bl
jne 0x438d08
lea esi, [ebp - 0xc0]
mov dword [ebp - 0xd4], 0xc
xor edi, edi
mov ebx, dword [esi + 4]
test ebx, ebx
je 0x438c3d
lea eax, [ebp - 0xcc]
mov dword [ebp - 0xcc], edx
push eax
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0xdc]
push eax
push edi
push dword [esi - 4]
push dword [ebp - 0xd0]
call dword [0x5a24a8]
mov ecx, dword [ebp - 0xd8]
xor edx, edx
test eax, eax
push 4
cmovne ecx, edx
pop edx
mov dword [ebp - 0xd8], ecx
cmp ebx, edx
jne 0x438c2b
mov eax, dword [esi]
mov dword [eax], ecx
jmp 0x438ce6
cmp ebx, 1
jne 0x438ce6
mov eax, dword [esi]
mov byte [eax], cl
jmp 0x438ce6
mov eax, dword [esi]
mov ebx, edi
mov eax, dword [eax]
mov dword [ebp - 0xe0], eax
lea eax, [ebp - 0xcc]
push eax
push edi
lea eax, [ebp - 0xdc]
mov dword [ebp - 0xcc], edi
push eax
push edi
push dword [esi - 4]
push dword [ebp - 0xd0]
call dword [0x5a24a8]
test eax, eax
jne 0x438cce
mov eax, dword [ebp - 0xcc]
test eax, eax
je 0x438cce
cmp dword [ebp - 0xdc], 1
je 0x438c8e
cmp dword [ebp - 0xdc], 7
jne 0x438cce
add eax, 4
push 1
push eax
call fcn.004e1c42
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x438cce
lea eax, [ebp - 0xcc]
push eax
push ebx
lea eax, [ebp - 0xdc]
push eax
push edi
push dword [esi - 4]
push dword [ebp - 0xd0]
call dword [0x5a24a8]
cmp word [ebx], di
jne 0x438cce
push ebx
call fcn.004e1bea
pop ecx
mov ebx, edi
mov eax, dword [esi]
mov dword [eax], ebx
mov eax, dword [ebp - 0xe0]
test eax, eax
je 0x438ce3
push eax
call fcn.004e1bea
pop ecx
push 4
pop edx
add esi, 0x10
sub dword [ebp - 0xd4], 1
jne 0x438bd6
mov edi, dword [ebp - 0xe8]
xor eax, eax
cmp dword [edi], eax
setne bl
jmp 0x438df2
mov byte [ebp - 0xc5], 1
lea edi, [ebp - 0xc0]
mov dword [ebp - 0xd4], 0xc
mov eax, dword [edi + 4]
test eax, eax
je 0x438d37
push eax
push dword [edi]
mov dword [ebp - 0xcc], eax
push dword [edi + 8]
jmp 0x438dbc
cmp dword [edi + 8], 1
jne 0x438d64
mov eax, dword [edi]
mov esi, 0x514870
cmp dword [eax], 0
cmovne esi, dword [eax]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push esi
mov dword [ebp - 0xcc], eax
push 1
jmp 0x438dba
cmp dword [edi + 8], 7
jne 0x438dce
mov eax, dword [edi]
mov esi, 0x530600
push 2
cmp dword [eax], 0
cmovne esi, dword [eax]
xor ecx, ecx
pop eax
mov dword [ebp - 0xcc], eax
mov ebx, esi
cmp word [esi], cx
je 0x438db6
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, eax
mov eax, dword [ebp - 0xcc]
cmp edx, 1
jl 0x438db6
add eax, 2
lea ebx, [ebx + edx*2]
add ebx, 2
xor ecx, ecx
lea eax, [eax + edx*2]
mov dword [ebp - 0xcc], eax
cmp word [ebx], cx
jne 0x438d89
push eax
push esi
push 7
xor esi, esi
push esi
push dword [edi - 4]
push dword [ebp - 0xd0]
call dword [0x5a24ac]
mov ecx, eax
movzx eax, byte [ebp - 0xc5]
xor ebx, ebx
test ecx, ecx
cmove ebx, eax
add edi, 0x10
sub dword [ebp - 0xd4], 1
mov byte [ebp - 0xc5], bl
jne 0x438d1f
push dword [ebp - 0xd0]
call dword [0x5a24a4]
mov al, bl
jmp 0x438e04
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f4166
leave
ret 4