Function at 0x404af0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x528f82
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x5861a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00416f96
mov eax, dword [esi + 0x20]
push 0
push eax
call dword [sym.imp.USER32.dll_GetSystemMenu]
push eax
call fcn.0042108f
mov ebx, eax
test ebx, ebx
je 0x404bd2
call fcn.0040f03a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x404b58
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x24], edi
push 0x65
mov dword [ebp - 4], 0
call fcn.0040ef4e
test eax, eax
je 0x404b87
push 0x65
push eax
lea ecx, [ebp - 0x24]
call fcn.004013c0
mov edi, dword [ebp - 0x24]
cmp dword [edi - 0xc], 0
je 0x404baf
mov ecx, dword [ebx + 4]
push 0
push 0
push 0x800
push ecx
call dword [sym.imp.USER32.dll_AppendMenuA]
mov edx, dword [ebx + 4]
push edi
push 0x10
push 0
push edx
call dword [sym.imp.USER32.dll_AppendMenuA]
lea eax, [edi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404bd2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 0x1938]
mov ecx, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push eax
mov ebx, 1
push ebx
push 0x80
push ecx
call edi
mov eax, dword [esi + 0x1938]
mov edx, dword [esi + 0x20]
push eax
push 0
push 0x80
push edx
call edi
push 5
mov dword [esi + 0x8b8], ebx
call dword [sym.imp.GDI32.dll_GetStockObject]
mov ecx, esi
mov dword [esi + 0x14d8], eax
call fcn.00402a10
push 0x138
mov dword [ebp - 0x20], 4
mov dword [ebp - 0x1c], 0x16
mov dword [ebp - 0x18], 0x3d9
mov dword [ebp - 0x14], 0x1f1
call fcn.0040c7a8
add esp, 4
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], ebx
test eax, eax
je 0x404c5b
mov ecx, eax
call fcn.00402120
jmp 0x404c5d
xor eax, eax
push 0
push 0xe900
push esi
lea ecx, [ebp - 0x20]
push ecx
push 0x40000000
mov dword [esi + 0x14cc], eax
mov edx, dword [eax]
mov edx, dword [edx + 0x54]
push str.InfoView
push 0
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
call edx
push 0x1f1
push 0x3d9
push 0
push 0
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push ebx
push eax
mov eax, dword [esi + 0x14cc]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_SetWindowRgn]
push 0
push 0x230
push 0x3de
push 0
push 0
mov ecx, esi
call fcn.00417e84
push 0
push 0x12
push 0x192
push 0x21a
push 0x1bc
lea ecx, [esi + 0x174c]
call fcn.00417e84
push 0
lea ecx, [esi + 0x16d8]
call fcn.00417ec4
push 0
lea ecx, [esi + 0x174c]
call fcn.00417ec4
push 0
push 0xb
push 0x26b
push 0x20c
lea ecx, [esi + 0x1854]
push 0xb3
call fcn.00417e84
push 0
push 0x35
push 0x92
push 0x1f4
push 0x347
lea ecx, [esi + 0x17c0]
call fcn.00417e84
push 0
push 0x12
push 0x12
push 3
push 0x39c
lea ecx, [esi + 0x15b0]
call fcn.00417e84
push 0
push 0x12
push 0x12
push 3
lea ecx, [esi + 0x151c]
push 0x3b2
call fcn.00417e84
push 0
push 0x12
push 0x12
push 3
lea ecx, [esi + 0x1644]
push 0x3c8
call fcn.00417e84
mov edx, dword [esi + 0x20]
push edx
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.00419beb
push eax
mov ecx, esi
mov dword [ebp - 0x24], eax
call fcn.00403170
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 4]
mov edx, dword [esi + 0x20]
push ecx
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp dword [0x587988], 0
jne 0x404e59
push 0
lea ecx, [esi + 0x17c0]
call fcn.00417ec4
push 0
lea ecx, [esi + 0x15b0]
call fcn.00417ec4
push 1
lea ecx, [esi + 0x1644]
call fcn.00417ec4
push 1
lea ecx, [esi + 0x151c]
call fcn.00417ec4
push 0
lea ecx, [esi + 0x17c0]
call fcn.00417f06
push 0
lea ecx, [esi + 0x15b0]
call fcn.00417f06
push 1
lea ecx, [esi + 0x1644]
call fcn.00417f06
push 1
lea ecx, [esi + 0x151c]
call fcn.00417f06
push 1
lea ecx, [esi + 0x17c0]
call fcn.00417ec4
push 0
lea ecx, [esi + 0x17c0]
call fcn.00417f06
push 1
lea ecx, [esi + 0x15b0]
call fcn.00417ec4
push 1
lea ecx, [esi + 0x15b0]
call fcn.00417f06
push 0
lea ecx, [esi + 0x1854]
call fcn.00407b30
mov ecx, esi
call fcn.00404920
test eax, eax
jne 0x404e81
mov eax, dword [esi]
mov edx, dword [eax + 0x180]
mov ecx, esi
call edx
xor eax, eax
jmp 0x404eef
mov eax, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_SetTimer]
push 0
push 0x64
push 0x66
push eax
call edi
push str.Connecting_Server...
mov ecx, esi
mov dword [esi + 0x9c], 0
call fcn.004041a0
cmp dword [0x587988], 0
jne 0x404ed9
push esi
push 4
push 0x4088a0
call fcn.00510e43
add esp, 0xc
mov dword [esi + 0x94], eax
cmp eax, 0xffffffff
je 0x404e7d
mov ecx, dword [esi + 0x20]
push 0
push 0x64
push 0x64
push ecx
call edi
mov eax, dword [esi + 0x20]
lea edx, [esi + 0x150c]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050e45c
mov esp, ebp
pop ebp
ret