Function at 0x401000
Capabilities:
Create process on windows
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x64
mov eax, dword [ebp + 0xc]
cmp eax, 0x110
je 0x4013e8
ja 0x4011e0
cmp eax, 0x2b
je 0x4012d8
cmp eax, 0x4e
jne 0x401280
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 8]
mov edx, eax
and edx, 0xfffffffd
cmp edx, 0xfffffffc
je 0x401700
cmp eax, 0xffffff36
jne 0x401380
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x20f0
mov dword [esp], eax
mov eax, dword [sym.imp.user32.dll_GetDlgItem]
mov dword [ebp - 0x30], eax
call eax
mov ebx, dword [sym.imp.user32.dll_GetWindowTextLengthW]
sub esp, 8
mov esi, eax
mov dword [esp], eax
call ebx
sub esp, 4
add eax, 1
mov edx, eax
je 0x401750
lea eax, [eax + eax]
mov dword [ebp - 0x34], edx
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebp - 0x38], eax
call eax
mov edx, dword [ebp - 0x34]
test eax, eax
mov edi, eax
je 0x401750
mov dword [esp], esi
mov esi, dword [sym.imp.user32.dll_GetWindowTextW]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
call esi
sub esp, 0xc
test eax, eax
je 0x4018ab
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x20f1
mov dword [esp], eax
mov eax, dword [ebp - 0x30]
call eax
sub esp, 8
mov dword [ebp - 0x30], eax
mov dword [esp], eax
call ebx
sub esp, 4
add eax, 1
mov edx, eax
je 0x401800
lea eax, [eax + eax]
mov dword [ebp - 0x34], edx
mov dword [esp], eax
mov eax, dword [ebp - 0x38]
call eax
mov edx, dword [ebp - 0x34]
test eax, eax
mov ebx, eax
je 0x4018f9
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 8], edx
mov dword [esp], eax
call esi
sub esp, 0xc
test eax, eax
je 0x4018bb
test edi, edi
je 0x401839
mov dword [esp + 0xc], edi
mov dword [esp + 8], str.RegisteredOwner
mov dword [esp + 4], 0x419024
mov dword [esp], reloc.uxtheme.dll_Ordinal_2
call sym._set_reg_key
mov dword [ebp - 0x34], ebx
mov esi, dword [sym.imp.ucrtbase.dll_free]
mov eax, edi
mov dword [esp + 0xc], ebx
mov dword [esp + 8], str.RegisteredOrganization
mov dword [esp + 4], 0x419024
mov dword [esp], reloc.uxtheme.dll_Ordinal_2
mov dword [ebp - 0x30], eax
call sym._set_reg_key
mov dword [esp + 0xc], edi
mov dword [esp + 8], str.RegisteredOwner
mov dword [esp + 4], 0x4190a8
mov dword [esp], reloc.uxtheme.dll_Ordinal_2
call sym._set_reg_key
mov dword [esp + 0xc], ebx
mov dword [esp + 8], str.RegisteredOrganization
mov dword [esp + 4], 0x4190a8
mov dword [esp], reloc.uxtheme.dll_Ordinal_2
call sym._set_reg_key
call sym._apply
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
call esi
xor eax, eax
jmp 0x401382
cmp eax, 0x111
je 0x4013a0
cmp eax, 0x138
jne 0x401380
mov eax, dword [ebp + 0x14]
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetDlgCtrlID]
sub esp, 4
cmp eax, 0x20f4
je 0x4016d0
jg 0x401390
cmp eax, 0x20f3
jne 0x401380
mov dword [esp], 8
mov ebx, dword [sym.imp.user32.dll_GetSysColor]
call ebx
sub esp, 4
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_SetTextColor]
sub esp, 8
mov dword [esp], 5
call ebx
sub esp, 4
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_SetBkColor]
sub esp, 8
mov dword [esp], 5
call dword [sym.imp.user32.dll_GetSysColorBrush]
sub esp, 4
jmp 0x401382
cmp eax, 2
jne 0x401380
mov eax, dword [0x428004]
test eax, eax
je 0x4012a8
mov dword [esp], eax
call dword [sym.imp.user32.dll_DestroyIcon]
mov dword [0x428004], 0
sub esp, 4
mov eax, dword [section..bss]
test eax, eax
je 0x401380
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_DeleteObject]
xor eax, eax
mov dword [section..bss], 0
sub esp, 4
jmp 0x401382
cmp dword [ebp + 0x10], 0x20f2
jne 0x401380
mov eax, dword [ebp + 0x14]
mov dword [esp + 8], 6
lea ebx, [eax + 0x1c]
mov dword [esp + 4], ebx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.user32.dll_FillRect]
mov eax, dword [0x428004]
sub esp, 0xc
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x20], 2
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.user32.dll_DrawIconEx]
mov eax, dword [ebp + 0x14]
sub esp, 0x24
mov dword [esp + 0xc], 8
mov dword [esp + 8], 0xa
mov dword [esp + 4], ebx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.user32.dll_DrawEdge]
sub esp, 0x10
nop
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
sub eax, 0x20f5
cmp eax, 1
ja 0x401380
jmp 0x401221
mov eax, dword [ebp + 0x10]
shr eax, 0x10
cmp eax, 0x300
jne 0x401380
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetParent]
sub esp, 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x468
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
xor eax, eax
sub esp, 0x10
jmp 0x401382
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetDC]
sub esp, 4
mov ebx, eax
mov dword [esp + 0xc], 0x419000
mov dword [esp + 8], str.RegisteredOwner
mov dword [esp + 4], 0x4190a8
mov dword [esp], reloc.uxtheme.dll_Ordinal_2
call sym._get_reg_key
mov dword [esp + 0xc], 0x419000
mov dword [esp + 8], str.RegisteredOrganization
mov edi, eax
mov dword [esp + 4], 0x4190a8
mov dword [esp], reloc.uxtheme.dll_Ordinal_2
call sym._get_reg_key
mov edx, dword [sym.imp.user32.dll_SetDlgItemTextW]
mov dword [esp + 8], edi
mov esi, eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x20f0
mov dword [ebp - 0x30], edx
mov dword [esp], eax
call edx
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x30]
sub esp, 0xc
mov dword [esp + 8], esi
mov dword [esp + 4], 0x20f1
mov dword [esp], eax
call edx
mov eax, dword [ebp + 8]
sub esp, 0xc
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetParent]
sub esp, 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x46d
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
sub esp, 0x10
mov dword [esp], edi
mov edi, dword [sym.imp.ucrtbase.dll_free]
call edi
mov dword [esp], esi
call edi
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x20f2
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetDlgItem]
sub esp, 8
mov esi, eax
test eax, eax
je 0x40158c
lea eax, [ebp - 0x2c]
mov edi, dword [sym.imp.user32.dll_GetClientRect]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call edi
lea eax, [ebp - 0x1c]
sub esp, 8
mov dword [esp + 4], eax
mov dword [esp], esi
call edi
mov eax, dword [ebp - 0x10]
sub esp, 8
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x24]
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], esi
call dword [sym.imp.user32.dll_MoveWindow]
mov eax, dword [ebp + 8]
sub esp, 0x18
mov dword [esp + 4], 0xfffffffa
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetWindowLongW]
sub esp, 8
mov dword [esp + 0x14], 0x8000
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x66
mov dword [esp], eax
call dword [sym.imp.user32.dll_LoadImageW]
mov dword [0x428004], eax
sub esp, 0x18
mov dword [esp + 4], 0x5a
mov dword [esp], ebx
call dword [sym.imp.gdi32.dll_GetDeviceCaps]
sub esp, 8
mov dword [esp + 8], 0x48
mov dword [esp + 4], eax
mov dword [esp], 0x18
call dword [sym.imp.kernel32.dll_MulDiv]
sub esp, 0xc
neg eax
mov dword [esp + 0x34], 0x41910c
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_CreateFontW]
sub esp, 0x38
mov dword [section..bss], eax
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], 1
mov dword [esp + 8], 0x30
mov dword [esp + 4], 0x20f4
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendDlgItemMessageW]
sub esp, 0x14
mov dword [esp], 0x41911a
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 4], str.wine_get_version
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
sub esp, 8
test eax, eax
je 0x4016a7
call eax
mov dword [esp + 4], 0x20f3
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.user32.dll_SetDlgItemTextA]
sub esp, 0xc
mov eax, dword [ebp + 8]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.user32.dll_ReleaseDC]
xor eax, eax
sub esp, 8
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], 0x7f
mov dword [esp], eax
call dword [sym.imp.gdi32.dll_SetTextColor]
sub esp, 8
mov dword [esp], 5
call dword [sym.imp.user32.dll_GetSysColor]
jmp 0x40124f
cmp dword [ebp + 0x10], 0x20f5
jne 0x401380
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x14], 5
mov dword [esp + 0x10], 0
add eax, 0x7c
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], str.open
mov dword [esp], 0
call dword [sym.imp.shell32.dll_ShellExecuteW]
xor eax, eax
sub esp, 0x18
jmp 0x401382
mov esi, dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x20f1
mov dword [esp], eax
mov eax, dword [ebp - 0x30]
call eax
sub esp, 8
mov edi, eax
mov dword [esp], eax
call ebx
sub esp, 4
add eax, 1
mov edx, eax
je 0x401872
lea eax, [eax + eax]
mov dword [ebp - 0x30], edx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov edx, dword [ebp - 0x30]
test eax, eax
mov ebx, eax
je 0x401872
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [ebp - 0x30], eax
mov dword [esp], edi
call dword [sym.imp.user32.dll_GetWindowTextW]
mov ecx, dword [ebp - 0x30]
sub esp, 0xc
test eax, eax
jne 0x40183f
mov dword [esp], ecx
mov edi, section..rdata
call esi
mov dword [esp + 0xc], 0x419000
mov dword [esp + 8], str.RegisteredOwner
mov dword [esp + 4], 0x419024
mov dword [esp], reloc.uxtheme.dll_Ordinal_2
call sym._set_reg_key
xor eax, eax
mov dword [ebp - 0x34], 0
mov ebx, section..rdata
jmp 0x401157
mov dword [esp + 0xc], edi
mov ebx, section..rdata
mov dword [esp + 8], str.RegisteredOwner
mov dword [esp + 4], 0x419024
mov dword [esp], reloc.uxtheme.dll_Ordinal_2
call sym._set_reg_key
mov dword [ebp - 0x34], 0
mov esi, dword [sym.imp.ucrtbase.dll_free]
mov eax, edi
jmp 0x401157
mov esi, dword [sym.imp.ucrtbase.dll_free]
mov dword [esp + 0xc], section..rdata
mov edi, section..rdata
mov dword [esp + 8], str.RegisteredOwner
mov dword [esp + 4], 0x419024
mov dword [esp], reloc.uxtheme.dll_Ordinal_2
call sym._set_reg_key
mov dword [ebp - 0x34], ebx
xor eax, eax
jmp 0x401157
mov dword [esp + 0xc], section..rdata
mov edi, section..rdata
mov dword [esp + 8], str.RegisteredOwner
mov ebx, edi
mov dword [esp + 4], 0x419024
mov dword [esp], reloc.uxtheme.dll_Ordinal_2
call sym._set_reg_key
mov dword [ebp - 0x34], 0
xor eax, eax
jmp 0x401157
mov dword [esp], edi
mov esi, dword [sym.imp.ucrtbase.dll_free]
call esi
jmp 0x401756
mov dword [esp], ebx
mov esi, dword [sym.imp.ucrtbase.dll_free]
mov ebx, section..rdata
call esi
mov dword [esp + 0xc], edi
mov dword [esp + 8], str.RegisteredOwner
mov dword [esp + 4], 0x419024
mov dword [esp], reloc.uxtheme.dll_Ordinal_2
call sym._set_reg_key
mov dword [ebp - 0x34], 0
mov eax, edi
jmp 0x401157
mov dword [esp + 0xc], edi
mov dword [esp + 8], str.RegisteredOwner
mov dword [esp + 4], 0x419024
mov dword [esp], reloc.uxtheme.dll_Ordinal_2
call sym._set_reg_key
mov esi, dword [sym.imp.ucrtbase.dll_free]
mov eax, edi
jmp 0x4017ef