Function at 0x40fef0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x55821c
mov eax, dword fs:[0]
push eax
sub esp, 0x608
mov eax, dword [0x5adf10]
xor eax, esp
mov dword [esp + 0x600], eax
push ebx
push esi
push edi
mov eax, dword [0x5adf10]
xor eax, esp
push eax
lea eax, [esp + 0x618]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov edi, dword [eax]
xor ebx, ebx
push 0x1ff
lea edx, [esp + 0x411]
push ebx
push edx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x3c], edi
mov byte [esp + 0x418], bl
call fcn.005344b0
add esp, 0xc
push 0x18c
lea eax, [esp + 0x38]
push ebx
push eax
call fcn.005344b0
add esp, 0xc
push str.http:__www.csrcbank.com
lea ecx, [esp + 0x20]
mov dword [esp + 0xbc], 0x52
call fcn.00405fd0
mov dword [esp + 0x620], ebx
mov eax, dword [esp + 0x1c]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x2c], esp
mov esi, esp
push eax
call fcn.00406330
add eax, 0x10
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esi], eax
call fcn.0040fa90
add esp, 4
mov byte [esp + 0x620], 1
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 0xc], ebx
jl 0x4100e6
push str.Cant_resolve
push ecx
call fcn.0052f5ad
add esp, 8
cmp eax, ebx
je 0x4100e6
sub eax, dword [esp + 0x14]
cmp eax, 0xffffffff
jle 0x4100e6
push 0xb4
lea ecx, [esp + 0x358]
push ebx
push ecx
mov dword [esp + 0xc8], 2
call fcn.005344b0
add esp, 0xc
mov esi, str.IDS_TELNET_FAILED
mov ecx, str.CheckRes
call fcn.00419bb0
lea edx, [esp + 0x354]
sub edx, eax
jmp 0x410030
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
cmp cl, bl
jne 0x410030
xor eax, eax
lea esp, [esp]
mov cl, byte [esp + eax + 0x354]
mov byte [esp + eax + 0xc0], cl
inc eax
cmp cl, bl
jne 0x410040
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x410068
lea edx, [esp + 0x34]
push edx
call fcn.00417780
add esp, 4
cmp edi, ebx
je 0x41008a
lea eax, [esp + 0x40c]
mov edx, edi
mov ecx, eax
sub edx, ecx
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x410080
mov byte [esp + 0x620], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4100b1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x620], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4100dc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 9
jmp 0x4104be
push str.http:__www.csebank.com
lea ecx, [esp + 0x24]
call fcn.00405fd0
mov byte [esp + 0x620], 2
mov eax, dword [esp + 0x20]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x2c], esp
mov esi, esp
push eax
call fcn.00406330
add eax, 0x10
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esi], eax
call fcn.0040fa90
add esp, 4
mov byte [esp + 0x620], 3
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], ebx
jl 0x41025a
push str.Cant_resolve
push eax
call fcn.0052f5ad
add esp, 8
cmp eax, ebx
je 0x41025a
sub eax, dword [esp + 0x18]
cmp eax, 0xffffffff
jle 0x41025a
push 0xb4
lea ecx, [esp + 0x358]
push ebx
push ecx
mov dword [esp + 0xc8], 2
call fcn.005344b0
add esp, 0xc
mov esi, str.IDS_TELNET_FAILED
mov ecx, str.CheckRes
call fcn.00419bb0
lea edx, [esp + 0x354]
sub edx, eax
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
cmp cl, bl
jne 0x410195
xor eax, eax
mov cl, byte [esp + eax + 0x354]
mov byte [esp + eax + 0xc0], cl
inc eax
cmp cl, bl
jne 0x4101a1
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x4101c9
lea edx, [esp + 0x34]
push edx
call fcn.00417780
add esp, 4
cmp edi, ebx
je 0x4101ea
lea eax, [esp + 0x40c]
mov edx, edi
mov ecx, eax
sub edx, ecx
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
cmp cl, bl
jne 0x4101e0
mov byte [esp + 0x620], 2
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x410212
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x620], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41023a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x620], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x4100a5
lea ecx, [esp + 0x1c4]
push ecx
push 0x202
mov dword [esp + 0x30], 0x1c6
mov dword [esp + 0x34], 0x1f6
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor esi, esi
jmp 0x410283
xor ebx, ebx
mov edi, dword [esp + 0x18]
mov ecx, dword [edi - 8]
mov eax, 1
sub eax, dword [edi - 4]
or ecx, eax
jge 0x4102a4
push ebx
lea ecx, [esp + 0x1c]
call fcn.004061b0
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + esi*4 + 0x28]
call fcn.0041fb10
test eax, eax
je 0x410358
inc esi
cmp esi, 2
jb 0x410281
mov edi, dword [esp + 0x14]
mov ecx, dword [edi - 8]
mov eax, 1
sub eax, dword [edi - 4]
or ecx, eax
jge 0x4102dd
push 0
lea ecx, [esp + 0x18]
call fcn.004061b0
mov edi, dword [esp + 0x14]
mov ebx, 0x50
call fcn.0041fb10
xor edx, edx
test eax, eax
setne dl
mov esi, edx
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor ebx, ebx
push 0xb4
push ebx
cmp esi, ebx
je 0x41035c
lea eax, [esp + 0x35c]
push eax
mov dword [esp + 0xc8], ebx
call fcn.005344b0
add esp, 0xc
mov esi, str.IDS_TELNET
mov ecx, str.CheckRes
call fcn.00419bb0
lea edx, [esp + 0x354]
sub edx, eax
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
cmp cl, bl
jne 0x410331
xor eax, eax
lea ecx, [ecx]
mov cl, byte [esp + eax + 0x354]
mov byte [esp + eax + 0xc0], cl
inc eax
cmp cl, bl
jne 0x410340
jmp 0x4103e3
xor esi, esi
jmp 0x4102f0
lea ecx, [esp + 0x35c]
push ecx
mov dword [esp + 0xc8], 2
call fcn.005344b0
add esp, 0xc
mov esi, str.IDS_TELNET_FAILED
mov ecx, str.CheckRes
call fcn.00419bb0
lea edx, [esp + 0x354]
sub edx, eax
nop
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
cmp cl, bl
jne 0x410390
lea eax, [esp + 0x40c]
mov edx, eax
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4103a3
lea edi, [esp + 0x354]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x4103b4
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor eax, eax
mov edi, edi
mov cl, byte [esp + eax + 0x354]
mov byte [esp + eax + 0xc0], cl
inc eax
cmp cl, bl
jne 0x4103d0
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x4103f8
lea edx, [esp + 0x34]
push edx
call fcn.00417780
add esp, 4
mov edx, dword [esp + 0x30]
cmp edx, ebx
je 0x41041a
lea eax, [esp + 0x40c]
mov ecx, eax
sub edx, ecx
jmp 0x410410
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
cmp cl, bl
jne 0x410410
mov byte [esp + 0x620], 2
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x410442
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x620], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41046a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x620], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410491
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x620], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4104bc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x618]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x600]
xor ecx, esp
call fcn.0052d75c
mov esp, ebp
pop ebp
ret