Function at 0x40b4f0
Capabilities:
Create thread
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x432bab
mov eax, dword fs:[0]
push eax
sub esp, 0x428
mov eax, dword [0x43c070]
xor eax, esp
mov dword [esp + 0x424], eax
push ebx
push ebp
push edi
mov eax, dword [0x43c070]
xor eax, esp
push eax
lea eax, [esp + 0x438]
mov dword fs:[0], eax
xor ebp, ebp
push 0x3fe
lea eax, [esp + 0x3a]
push ebp
push eax
mov word [esp + 0x40], bp
call fcn.0040ed60
add esp, 0xc
mov dword [esp + 0x14], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x10], vtable.COKDlg.0
push 0x200
lea ecx, [esp + 0x38]
push ecx
mov dword [esp + 0x448], ebp
mov edx, dword [esi + 4]
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3f0
push edx
call ebx
mov edi, dword [sym.imp.USER32.dll_GetWindowTextW]
push eax
call edi
test eax, eax
je 0x40b74c
push 0x4375ac
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x40b6b6
cmp dword [0x43e574], ebp
jne 0x40b5b5
mov dword [0x43e584], ebp
mov ecx, dword [esi + 4]
push 0x3f6
push ecx
mov dword [0x43e574], 1
call ebx
cmp eax, ebp
je 0x40b74c
push 0x200
lea edx, [esp + 0x38]
push edx
push eax
call edi
cmp eax, ebp
push ebp
jne 0x40b5fd
mov eax, dword [esi + 4]
push 0x4371f0
push 0x4375b8
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x40b74c
push 2
mov dword [0x43e564], ebp
mov dword [0x43e568], ebp
mov dword [0x43e56c], ebp
mov dword [0x43e570], ebp
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
jne 0x40b62a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40b631
mov ecx, eax
call fcn.0040aa90
push 0x437598
lea ecx, [esp + 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
push esi
push ebp
jne 0x40b64e
push 0x40acc0
jmp 0x40b653
push 0x40ac10
call fcn.0040e8f3
mov edx, dword [esi + 4]
add esp, 0xc
push str.ck_Wkb
push 0xffffffffffffffff
push edx
call ebx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [esi + 4]
push ebp
push 0x3f6
push eax
call ebx
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call edi
mov ecx, dword [esi + 4]
push ebp
push 0x3f7
push ecx
call ebx
push eax
call edi
mov edx, dword [esi + 4]
push 5
push 0x3f8
push edx
call ebx
push eax
call edi
mov eax, dword [esi + 4]
push str.Pbk
push 0x3f0
push eax
jmp 0x40b743
cmp dword [0x43e578], ebp
mov dword [0x43e564], 1
jne 0x40b6dc
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, edi
push 0x64
call edi
cmp dword [0x43e578], ebp
je 0x40b6d0
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea edi, [esp + 0x14]
call fcn.0040bea0
mov ecx, dword [esi + 4]
push 0x4375e0
push 0xffffffffffffffff
push ecx
call ebx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov edx, dword [esi + 4]
push 5
push 0x3f6
push edx
call ebx
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call edi
mov eax, dword [esi + 4]
push 5
push 0x3f7
push eax
call ebx
push eax
call edi
mov ecx, dword [esi + 4]
push ebp
push 0x3f8
push ecx
call ebx
push eax
call edi
mov edx, dword [esi + 4]
push 0x4375ac
push 0x3f0
push edx
call ebx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov dword [esp + 0x440], 0xffffffff
mov eax, dword [esp + 0x24]
cmp eax, ebp
je 0x40b765
push eax
call fcn.0040d7b8
mov ecx, dword [esp + 0x438]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x424]
xor ecx, esp
call fcn.0040da0d
add esp, 0x434
ret 4