Function at 0x405228
Capabilities:
Create thread

Disassembly:
sub esp, 0xab8
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, 0x425460
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x18], esi
cmp ecx, 1
jbe 0x40525b
push 0x425460
call fcn.00407460
add esp, 4
test eax, eax
je 0x40525b
dec dword [0x42545c]
mov eax, dword [0x42545c]
xor ebp, ebp
cmp eax, ebp
jle 0x40527f
push ebp
push ebp
push 0x40c060
mov ecx, esi
call sub.MFC42.DLL_CWnd::MessageBoxA
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xab8
ret
mov al, byte [0x42537c]
test al, al
jne 0x4052a1
push ebp
push ebp
push 0x40c034
mov ecx, esi
call sub.MFC42.DLL_CWnd::MessageBoxA
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xab8
ret
mov edi, dword [sym.imp.MSVCRT.dll_strstr]
push 0x40c02c
push 0x425318
mov byte [esp + 0x1b], 0
mov dword [esp + 0x1c], ebp
xor ebx, ebx
call edi
add esp, 8
test eax, eax
je 0x4052cb
mov byte [esp + 0x13], bl
jmp 0x4052e3
push 0x40c028
push 0x425318
call edi
add esp, 8
test eax, eax
je 0x4052e3
mov byte [esp + 0x13], 1
mov eax, dword [esi + 0x80]
push 0
push 0
push 0x1004
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
jle 0x405644
jmp 0x40530d
mov esi, dword [esp + 0x18]
mov edi, dword [sym.imp.MSVCRT.dll_strstr]
lea ecx, [esp + 0x1c]
push 0x104
push ecx
add esi, 0x60
push 1
push ebp
mov ecx, esi
call sub.MFC42.DLL_CListCtrl::GetItemText_1
lea edx, [esp + 0x9c4]
push 0x104
push edx
push 2
push ebp
mov ecx, esi
call sub.MFC42.DLL_CListCtrl::GetItemText_1
lea eax, [esp + 0x120]
push 0x104
push eax
push 3
push ebp
mov ecx, esi
call sub.MFC42.DLL_CListCtrl::GetItemText_1
lea ecx, [esp + 0x9c4]
push 0x40be7c
push ecx
call edi
add esp, 8
test eax, eax
je 0x40544b
mov al, byte [esp + 0x13]
test al, al
je 0x4053c1
test ebx, ebx
jne 0x405385
lea edx, [esp + 0x120]
push edx
jmp 0x405414
mov esi, dword [sym.imp.MSVCRT.dll_atoi]
lea ecx, [esp + 0x120]
push ecx
call esi
add esp, 4
cmp ebx, eax
jle 0x40544b
lea edx, [esp + 0x120]
push edx
call esi
add esp, 4
test eax, eax
jle 0x40544b
lea eax, [esp + 0x120]
push eax
call esi
jmp 0x40541a
lea ecx, [esp + 0x1c]
push 0x40c02c
push ecx
call edi
add esp, 8
test eax, eax
je 0x40544b
test ebx, ebx
jne 0x4053e2
lea edx, [esp + 0x120]
push edx
jmp 0x405414
lea ecx, [esp + 0x120]
push ecx
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
cmp ebx, eax
jle 0x40544b
lea edx, [esp + 0x120]
push edx
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
test eax, eax
jle 0x40544b
lea eax, [esp + 0x120]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
mov ebx, eax
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
lea edx, [esp + 0x224]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x14], ebp
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x18]
push 0
push 0
push 0x1004
mov edx, dword [ecx + 0x80]
inc ebp
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
cmp ebp, eax
jl 0x405303
test ebx, ebx
jle 0x405640
mov bl, byte [esp + 0x13]
mov ecx, 0x5a
mov esi, 0x425250
lea edi, [esp + 0x4bc]
xor eax, eax
lea edx, [esp + 0x4bc]
test bl, bl
mov ebx, dword [esp + 0x14]
push edx
rep movsd dword es:[edi], dword [esi]
setne al
mov ecx, ebx
inc eax
shl ecx, 4
mov dword [esp + 0x5f0], eax
mov eax, dword [ebx*4 + 0x40ca40]
lea edi, [ecx + 0x411860]
push eax
push edi
call fcn.00403740
add esp, 0xc
test al, al
je 0x405654
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
lea ecx, [esp + 0x224]
push ecx
lea edx, [esp + 0x20]
push str.SylarMax
push edx
call esi
mov ecx, dword [esp + 0x24]
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
call sub.MFC42.DLL_CWnd::SetWindowTextA
lea ecx, [esp + 0x1c]
push str.Start_Connect_Server...
push ecx
call esi
lea edx, [esp + 0x24]
push edx
call fcn.00406f80
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
lea edx, [esp + 0x328]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [esp + 0x346]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x4bc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x378]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x5f0]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x725]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x328]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x346]
push ecx
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x7aa]
push edx
call esi
lea eax, [esp + 0x378]
lea ecx, [esp + 0x8a7]
push eax
push ecx
call esi
lea edx, [esp + 0x224]
lea eax, [esp + 0x624]
push edx
push eax
call esi
lea ecx, [esp + 0x9a8]
push 0x40c6e0
push ecx
call esi
push 0
lea edx, [esp + 0x628]
push 0
push edx
push 0x4074c0
push 0
push 0
mov dword [esp + 0x9d4], ebx
mov byte [esp + 0x9d8], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xab8
ret
mov esi, dword [esp + 0x18]
push 0
push 0
push 0x40bfe0
mov ecx, esi
call sub.MFC42.DLL_CWnd::MessageBoxA
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xab8
ret