Function at 0x422b20
Capabilities:
Resume thread

Disassembly:
sub esp, 0x30
push ebx
push ebp
push esi
mov esi, ecx
push edi
push 0
lea edi, [esi + 0x38]
lea ecx, [esi + 0x1c]
push edi
push 0x3ef
call fcn.00422f30
mov eax, dword [esi + 0x20]
mov ebx, dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x422b53
push eax
mov eax, dword [esi + 4]
push eax
call ebx
mov eax, dword [esi + 0x24]
test eax, eax
jne 0x422b6e
mov ecx, dword [esi + 4]
push 0x3ee
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push eax
call ebx
mov edx, dword [edi]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0x820000
push 0
push 0x401
push edx
call ebx
mov eax, dword [edi]
push 0
push 0x1e
push 0x402
push eax
call ebx
mov ecx, dword [esi + 4]
push 0
push 0xc8
push 0x2710
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
mov edx, dword [esi + 4]
push 0xfffffffffffffff0
push edx
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ebp, dword [sym.imp.USER32.dll_GetParent]
mov ebx, eax
and ebx, 0x40000000
je 0x422bcd
mov eax, dword [esi + 4]
push eax
call ebp
jmp 0x422bd9
mov ecx, dword [esi + 4]
push 4
push ecx
call dword [sym.imp.USER32.dll_GetWindow]
mov edi, eax
mov eax, dword [esi + 4]
lea edx, [esp + 0x30]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
test ebx, ebx
jne 0x422c50
test edi, edi
je 0x422c0b
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x422c09
test eax, 0x20000000
je 0x422c0b
xor edi, edi
lea ecx, [esp + 0x20]
push 0
push ecx
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
test edi, edi
jne 0x422c42
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
jmp 0x422c7d
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
jmp 0x422c7d
mov ecx, dword [esi + 4]
push ecx
call ebp
mov ebp, dword [sym.imp.USER32.dll_GetClientRect]
lea edx, [esp + 0x20]
mov ebx, eax
push edx
push ebx
call ebp
lea eax, [esp + 0x10]
push eax
push edi
call ebp
lea ecx, [esp + 0x10]
push 2
push ecx
push ebx
push edi
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov ebp, dword [esp + 0x3c]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x38]
mov edi, dword [esp + 0x30]
sub ebp, edx
mov edx, dword [esp + 0x18]
sub ebx, edi
add eax, edx
cdq
sub eax, edx
mov ecx, eax
mov eax, ebx
cdq
sub eax, edx
mov edx, dword [esp + 0x1c]
sar ecx, 1
sar eax, 1
sub ecx, eax
mov eax, dword [esp + 0x14]
add eax, edx
cdq
sub eax, edx
mov edi, eax
mov eax, ebp
cdq
sub eax, edx
sar edi, 1
sar eax, 1
sub edi, eax
mov eax, dword [esp + 0x20]
cmp ecx, eax
jl 0x422cda
mov eax, dword [esp + 0x28]
lea edx, [ecx + ebx]
cmp edx, eax
jle 0x422cdc
sub eax, ebx
mov ecx, eax
mov eax, dword [esp + 0x24]
cmp edi, eax
jl 0x422cf1
mov eax, dword [esp + 0x2c]
lea edx, [edi + ebp]
cmp edx, eax
jle 0x422cf3
sub eax, ebp
mov edi, eax
mov eax, dword [esi + 4]
push 0x15
push 0xffffffffffffffff
push 0xffffffffffffffff
push edi
push ecx
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esi + 0x34]
test eax, eax
je 0x422d15
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebx, dword [0x4d74d8]
push 0
push 0xc
call edi
push eax
push 0xb
call edi
push eax
push 1
push 0x80
push ebx
mov ebx, dword [sym.imp.USER32.dll_LoadImageW]
call ebx
mov ecx, dword [esi + 4]
push eax
push 1
push 0x80
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebp, dword [0x4d74d8]
push 0
push 0x32
call edi
push eax
push 0x31
call edi
push eax
push 1
push 0x80
push ebp
call ebx
mov edx, dword [esi + 4]
push eax
push 0
push 0x80
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esi + 4]
push 0
push eax
call dword [sym.imp.USER32.dll_GetSystemMenu]
mov esi, eax
test esi, esi
je 0x422da4
push 3
push 0xf060
push esi
call dword [sym.imp.USER32.dll_EnableMenuItem]
push esi
call dword [sym.imp.USER32.dll_DestroyMenu]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x30
ret 8