Function at 0x402638
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x444
push ebx
push esi
push edi
lea esi, [esp + 0x18]
mov ebx, eax
call fcn.0041d008
mov edi, dword [sym.imp.USER32.dll_GetDlgItemTextW]
push 0x104
lea eax, [ebx + 0x88]
push eax
mov esi, 0x3fb
push esi
push dword [ebx + 4]
call edi
push 0x104
lea eax, [ebx + 0x4a0]
push eax
push 0x3fd
push dword [ebx + 4]
call edi
mov eax, dword [0x46dd38]
mov ecx, 0x46dd38
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
lea eax, [ebx + 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x4026ea
movzx eax, word [0x46e980]
push eax
push 0xb5
lea eax, [esp + 0x18]
call fcn.0040ef5c
push 0x30
push 0x465024
push dword [esp + 0x18]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
push esi
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x402a0d
lea edi, [esp + 0xb0]
call fcn.00420f06
lea edi, [esp + 0x228]
call fcn.00420f5a
lea esi, [esp + 0x128]
call fcn.00420fcb
lea esi, [esp + 0x38]
call fcn.00422530
mov esi, dword [sym.imp.USER32.dll_GetDlgItemTextW]
mov edi, 0x104
push edi
lea eax, [ebx + 0x6ac]
push eax
push 0x407
push dword [ebx + 4]
call esi
push 1
push 0
push 0x419
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItemInt]
push edi
mov dword [ebx + 0x294], eax
lea eax, [ebx + 0x8b4]
push eax
push 0x406
push dword [ebx + 4]
call esi
push edi
lea eax, [ebx + 0x298]
push eax
push 0x3fc
push dword [ebx + 4]
call esi
lea eax, [esp + 0x2c0]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
movzx eax, word [0x46e980]
push eax
push 0xb7
lea eax, [esp + 0x18]
call fcn.0040ef5c
mov eax, dword [esp + 0x10]
lea esi, [esp + 0x198]
call fcn.0040f4fc
mov eax, 0x465024
lea esi, [esp + 0x128]
call fcn.0040f4fc
lea edi, [ebx + 0x88]
mov eax, edi
lea esi, [esp + 0x144]
call fcn.0040f4fc
mov eax, edi
lea esi, [esp + 0x17c]
call fcn.0040f4fc
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [ebx + 0x4a0]
push esi
call edi
test eax, eax
je 0x4027fa
mov eax, esi
lea esi, [esp + 0x144]
call fcn.0040f4fc
mov eax, 0x4661a4
lea esi, [esp + 0x160]
call fcn.0040f4fc
movzx eax, word [0x46e980]
push eax
push 0xb8
lea eax, [esp + 0x18]
call fcn.0040ef5c
mov eax, dword [esp + 0x10]
lea esi, [esp + 0x108]
call fcn.0040f4fc
lea eax, [esp + 0x1b4]
push eax
lea eax, [esp + 0xb4]
call fcn.0040f56a
lea eax, [ebx + 0x6ac]
lea esi, [esp + 0x48]
call fcn.0040f4fc
lea eax, [ebx + 0x8b4]
lea esi, [esp + 0x64]
call fcn.0040f4fc
movzx eax, word [ebx + 0x294]
push eax
call dword [sym.imp.WS2_32.dll_htons]
lea esi, [ebx + 0x298]
push esi
mov word [esp + 0x48], ax
call edi
test eax, eax
jne 0x4028e3
cmp dword [0x46e97c], eax
je 0x4028e3
lea eax, [esp + 0x24]
call fcn.0041feab
mov eax, dword [0x46dd38]
mov ecx, 0x46dd38
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
push ecx
lea ecx, [ebx + 0x88]
mov eax, esp
push ecx
call fcn.0041cfdd
lea eax, [esp + 0x2c]
push eax
call fcn.0041fef3
mov edi, dword [esp + 0x14]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [edi - 0x10]
call fcn.0041ad22
lea eax, [esp + 0x24]
call fcn.0041fede
mov eax, dword [0x46dd38]
mov ecx, 0x46dd38
call dword [eax + 0xc]
mov edi, eax
add edi, 0x10
push esi
lea eax, [esp + 0x3c]
mov dword [esp + 0x18], edi
call fcn.004225f1
test eax, eax
je 0x402985
lea eax, [esp + 0x38]
push eax
lea esi, [esp + 0x12c]
call fcn.00422a48
test eax, eax
movzx eax, word [0x46e980]
push eax
lea eax, [esp + 0x14]
je 0x40295c
push 0xb9
call fcn.0040ef5c
lea eax, [esp + 0x10]
lea edi, [esp + 0x14]
call fcn.0041d135
push dword [esp + 0x80]
mov eax, edi
push eax
call fcn.0040ef36
mov edi, dword [esp + 0x14]
push 0x30
push 0x465024
push edi
jmp 0x402971
push 0xba
call fcn.0040ef5c
push 0x40
push 0x465024
push dword [esp + 0x18]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
lea esi, [esp + 0x38]
call fcn.004226b9
jmp 0x4029c2
movzx eax, word [0x46e980]
push eax
push 0xbb
lea eax, [esp + 0x1c]
call fcn.0040ef5c
push dword [0x46e980]
lea eax, [esp + 0x18]
push eax
call fcn.0041db20
mov edi, dword [esp + 0x1c]
pop ecx
pop ecx
push 0x30
push 0x465024
push edi
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
call dword [sym.imp.WS2_32.dll_WSACleanup]
lea eax, [edi - 0x10]
call fcn.0041ad22
lea ecx, [esp + 0x38]
call fcn.004225b9
lea ebx, [esp + 0x128]
call fcn.00402cd1
lea eax, [esp + 0x228]
call fcn.00402cad
push 0
push 1
lea esi, [esp + 0x110]
call fcn.00410e15
lea edi, [esp + 0xb0]
call fcn.00402d37
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.0041ad22
cmp byte [esp + 0x20], 0
je 0x402a2a
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_SetCursor]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret