Function at 0x405140
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x5c
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.kernel32.dll_LocalLock
sub esp, 4
mov dword [ebp - 0x2c], eax
mov dword [esp + 4], 0x38
mov dword [esp], 0
call sub.kernel32.dll_LocalAlloc
mov esi, dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
mov eax, dword [ebp + 0x10]
sub esp, 8
mov dword [esp], eax
call esi
mov dword [esp], 0
add eax, 1
mov dword [esp + 4], eax
call sub.kernel32.dll_LocalAlloc
mov dword [ebp - 0x28], eax
mov edi, eax
mov eax, dword [ebp + 0x1c]
sub esp, 8
mov dword [esp], eax
call esi
mov dword [esp], 0
add eax, 1
mov dword [esp + 4], eax
call sub.kernel32.dll_LocalAlloc
mov edx, dword [ebp + 0x20]
sub esp, 8
mov dword [ebp - 0x1c], eax
mov dword [esp], edx
call esi
mov dword [esp], 0
add eax, 1
mov dword [esp + 4], eax
call sub.kernel32.dll_LocalAlloc
mov edx, dword [ebp + 0x28]
sub esp, 8
mov dword [ebp - 0x20], eax
mov dword [esp], edx
call esi
mov dword [esp], 0
add eax, 1
mov dword [esp + 4], eax
call sub.kernel32.dll_LocalAlloc
mov dword [ebp - 0x24], eax
sub esp, 8
test ebx, ebx
je 0x4054f0
test edi, edi
je 0x4054f0
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
test edx, edx
sete dl
test ecx, ecx
sete al
or dl, al
jne 0x405470
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x405470
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call esi
mov edi, eax
mov eax, dword [ebp - 0x28]
add edi, 1
mov dword [esp], eax
call sub.kernel32.dll_LocalLock
mov ecx, dword [ebp + 0x10]
sub esp, 4
mov dword [esp + 4], ecx
mov dword [esp + 8], edi
mov dword [esp], eax
call sub.ucrtbase.dll_memcpy
mov eax, dword [ebp + 0x1c]
mov dword [esp], eax
call esi
mov edi, eax
mov eax, dword [ebp - 0x1c]
add edi, 1
mov dword [esp], eax
call sub.kernel32.dll_LocalLock
mov ecx, dword [ebp + 0x1c]
sub esp, 4
mov dword [esp + 4], ecx
mov dword [esp + 8], edi
mov dword [esp], eax
call sub.ucrtbase.dll_memcpy
mov eax, dword [ebp + 0x20]
mov dword [esp], eax
call esi
mov edi, eax
mov eax, dword [ebp - 0x20]
add edi, 1
mov dword [esp], eax
call sub.kernel32.dll_LocalLock
mov ecx, dword [ebp + 0x20]
sub esp, 4
mov dword [esp + 4], ecx
mov dword [esp + 8], edi
mov dword [esp], eax
call sub.ucrtbase.dll_memcpy
mov eax, dword [ebp + 0x28]
mov dword [esp], eax
call esi
mov esi, eax
mov eax, dword [ebp - 0x24]
add esi, 1
mov dword [esp], eax
call sub.kernel32.dll_LocalLock
mov ecx, dword [ebp + 0x28]
sub esp, 4
mov dword [esp + 8], esi
mov dword [esp + 4], ecx
mov dword [esp], eax
call sub.ucrtbase.dll_memcpy
mov eax, dword [ebp - 0x2c]
mov esi, dword [eax + 0x40]
mov dword [eax + 0x10], ebx
test esi, esi
je 0x405518
lea esi, [esi]
nop
mov dword [esp], esi
mov edi, esi
call sub.kernel32.dll_LocalLock
mov esi, dword [eax + 8]
sub esp, 4
test esi, esi
jne 0x405300
add eax, 8
mov dword [eax], ebx
mov dword [esp], ebx
call sub.kernel32.dll_LocalLock
mov esi, eax
mov eax, dword [ebp + 8]
sub esp, 4
mov dword [esi + 4], edi
mov dword [esi], eax
mov eax, dword [ebp - 0x28]
mov dword [esi + 8], 0
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x28], eax
mov eax, dword [ebp + 0x24]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 0x2c], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp + 0x30]
mov dword [esi + 0x34], eax
mov eax, dword [ebp + 0x2c]
mov dword [esi + 0x30], eax
mov eax, dword [0x40a080]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0x24], 0
mov eax, dword [eax + 8]
mov dword [esp + 0x1c], 0x80000000
mov dword [esp + 0x18], 0x80000000
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x40c00000
mov dword [esp + 8], 0
mov dword [esp + 4], str.PMProgram
mov dword [esp], 0
call sub.user32.dll_CreateWindowExW
mov edx, dword [ebp + 0x10]
sub esp, 0x30
mov dword [esi + 0xc], eax
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.user32.dll_SetWindowTextA
sub esp, 8
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword [esi + 0xc]
mov dword [esp], eax
call sub.user32.dll_SetWindowLongW
sub esp, 0xc
mov dword [esp + 4], 2
mov eax, dword [esi + 0xc]
mov dword [esp], eax
call sub.user32.dll_ShowWindow
mov eax, dword [ebp + 0x18]
sub esp, 8
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x18], 0x15
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [esi + 0xc]
mov dword [esp], eax
call sub.user32.dll_SetWindowPos
mov eax, dword [esi + 0xc]
sub esp, 0x1c
mov dword [esp], eax
call sub.user32.dll_UpdateWindow
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], 0
mov dword [esp + 4], 3
mov dword [esp], 0xd
call fcn.00404130
mov dword [esp], ebx
call sub.kernel32.dll_LocalFree
sub esp, 4
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x4054a9
mov dword [esp], eax
call sub.kernel32.dll_LocalFree
sub esp, 4
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4054bb
mov dword [esp], eax
call sub.kernel32.dll_LocalFree
sub esp, 4
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x4054cd
mov dword [esp], eax
call sub.kernel32.dll_LocalFree
sub esp, 4
mov eax, dword [ebp - 0x24]
xor ebx, ebx
test eax, eax
je 0x40545c
mov dword [esp], eax
call sub.kernel32.dll_LocalFree
mov eax, ebx
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], 0
mov dword [esp + 4], 3
mov dword [esp], 0xd
call fcn.00404130
test ebx, ebx
je 0x405497
jmp 0x40548c
mov eax, dword [ebp - 0x2c]
xor edi, edi
add eax, 0x40
jmp 0x405317