Function at 0x4183f0
Capabilities:
Create thread

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x420ad8
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push ebp
push esi
mov esi, ecx
push edi
push 0xfffffffffffffff0
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov ebp, dword [sym.imp.USER32.dll_GetParent]
mov ebx, eax
and ebx, 0x40000000
je 0x418432
mov ecx, dword [esi + 4]
push ecx
call ebp
jmp 0x41843e
mov edx, dword [esi + 4]
push 4
push edx
call dword [sym.imp.USER32.dll_GetWindow]
mov ecx, dword [esi + 4]
mov edi, eax
lea eax, [esp + 0x3c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
test ebx, ebx
jne 0x4184b5
test edi, edi
je 0x418470
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x10000000
je 0x41846e
test eax, 0x20000000
je 0x418470
xor edi, edi
lea edx, [esp + 0x2c]
push 0
push edx
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
test edi, edi
jne 0x4184a7
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
jmp 0x4184e2
lea ecx, [esp + 0x1c]
push ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
jmp 0x4184e2
mov edx, dword [esi + 4]
push edx
call ebp
mov ebp, dword [sym.imp.USER32.dll_GetClientRect]
mov ebx, eax
lea eax, [esp + 0x2c]
push eax
push ebx
call ebp
lea ecx, [esp + 0x1c]
push ecx
push edi
call ebp
lea edx, [esp + 0x1c]
push 2
push edx
push ebx
push edi
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x48]
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x44]
mov edi, dword [esp + 0x3c]
add eax, ecx
sub ebp, edx
cdq
sub eax, edx
sub ebx, edi
mov ecx, eax
mov eax, ebx
cdq
sub eax, edx
mov edx, dword [esp + 0x28]
sar ecx, 1
sar eax, 1
sub ecx, eax
mov eax, dword [esp + 0x20]
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 + 0x2c]
cmp ecx, eax
jl 0x41853f
mov eax, dword [esp + 0x34]
lea edx, [ecx + ebx]
cmp edx, eax
jle 0x418541
sub eax, ebx
mov ecx, eax
mov eax, dword [esp + 0x30]
cmp edi, eax
jl 0x418556
mov eax, dword [esp + 0x38]
lea edx, [edi + ebp]
cmp edx, eax
jle 0x418558
sub eax, ebp
mov edi, eax
mov eax, dword [esi + 4]
push 0x15
push 0xffffffffffffffff
push 0xffffffffffffffff
push edi
xor ebp, ebp
push ecx
push ebp
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [esi + 4]
push 0x425074
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 1
push 1
push 0x18
push 0x18
push 0x4b
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
mov ebx, eax
mov dword [esp + 0x10], ebp
push ecx
lea ecx, [esp + 0x14]
mov eax, esp
mov dword [esp + 0x58], ebp
mov dword [esp + 0x18], esp
mov dword [eax], 0xcc
call fcn.00402870
mov edx, dword [esp + 0x10]
push ebp
push edx
push ebx
call dword [sym.imp.COMCTL32.dll_ImageList_Add]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
je 0x4185cc
mov dword [esp + 0x10], ebp
mov ecx, dword [esi + 4]
push 2
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
lea edi, [esi + 0x158]
push eax
mov ecx, edi
call fcn.00404630
test eax, eax
je 0x4185f1
mov ecx, edi
call fcn.00401a80
mov dword [edi + 0x24], ebx
mov al, byte [edi + 0x20]
test al, 8
je 0x418610
mov edx, dword [edi + 4]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x418610
mov ecx, edi
call fcn.00417270
mov ebx, 1
mov dword [edi + 0x28], ebp
mov dword [edi + 0x2c], ebx
mov dword [edi + 0x30], 2
mov dword [edi + 0x34], 4
mov dword [esi + 0x178], ebx
mov eax, dword [esi + 0x19c]
mov ecx, dword [esi + 4]
push eax
push 0x3f7
push ecx
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
lea edx, [esp + 0x18]
push edx
push ebp
push esi
push 0x4183d0
push ebp
push ebp
call fcn.0041ac1c
mov dword [esi + 0x1a4], eax
mov eax, dword [esp + 0x28]
add esp, 0x18
cmp eax, ebp
je 0x418670
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
mov eax, ebx
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x48
ret 0x10