Function at 0x410d40
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x56ec8c
mov eax, dword fs:[0]
push eax
sub esp, 0x608
mov eax, dword [0x5d7f50]
xor eax, esp
mov dword [esp + 0x600], eax
push ebx
push esi
push edi
mov eax, dword [0x5d7f50]
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.00543bb0
add esp, 0xc
push 0x18c
lea eax, [esp + 0x38]
push ebx
push eax
call fcn.00543bb0
add esp, 0xc
push str.http:__www.csrcbank.com
lea ecx, [esp + 0x20]
mov dword [esp + 0xbc], 0x52
call fcn.00402770
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.00402b50
add eax, 0x10
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esi], eax
call fcn.004108e0
add esp, 4
mov byte [esp + 0x620], 1
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 0xc], ebx
jl 0x410f36
push str.Cant_resolve
push ecx
call fcn.0053e7e8
add esp, 8
cmp eax, ebx
je 0x410f36
sub eax, dword [esp + 0x14]
cmp eax, 0xffffffff
jle 0x410f36
push 0xb4
lea ecx, [esp + 0x358]
push ebx
push ecx
mov dword [esp + 0xc8], 2
call fcn.00543bb0
add esp, 0xc
mov esi, str.IDS_TELNET_FAILED
mov ecx, str.CheckRes
call fcn.00425600
lea edx, [esp + 0x354]
sub edx, eax
jmp 0x410e80
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
cmp cl, bl
jne 0x410e80
xor eax, eax
lea esp, [esp]
mov cl, byte [esp + eax + 0x354]
mov byte [esp + eax + 0xc0], cl
inc eax
cmp cl, bl
jne 0x410e90
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x410eb8
lea edx, [esp + 0x34]
push edx
call fcn.0041f520
add esp, 4
cmp edi, ebx
je 0x410eda
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 0x410ed0
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 0x410f01
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 0x410f2c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 9
jmp 0x41130e
push str.http:__www.csebank.com
lea ecx, [esp + 0x24]
call fcn.00402770
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.00402b50
add eax, 0x10
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esi], eax
call fcn.004108e0
add esp, 4
mov byte [esp + 0x620], 3
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], ebx
jl 0x4110aa
push str.Cant_resolve
push eax
call fcn.0053e7e8
add esp, 8
cmp eax, ebx
je 0x4110aa
sub eax, dword [esp + 0x18]
cmp eax, 0xffffffff
jle 0x4110aa
push 0xb4
lea ecx, [esp + 0x358]
push ebx
push ecx
mov dword [esp + 0xc8], 2
call fcn.00543bb0
add esp, 0xc
mov esi, str.IDS_TELNET_FAILED
mov ecx, str.CheckRes
call fcn.00425600
lea edx, [esp + 0x354]
sub edx, eax
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
cmp cl, bl
jne 0x410fe5
xor eax, eax
mov cl, byte [esp + eax + 0x354]
mov byte [esp + eax + 0xc0], cl
inc eax
cmp cl, bl
jne 0x410ff1
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x411019
lea edx, [esp + 0x34]
push edx
call fcn.0041f520
add esp, 4
cmp edi, ebx
je 0x41103a
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 0x411030
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 0x411062
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 0x41108a
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 0x410ef5
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 0x4110d3
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 0x4110f4
push ebx
lea ecx, [esp + 0x1c]
call fcn.00402950
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + esi*4 + 0x28]
call fcn.0042be20
test eax, eax
je 0x4111a8
inc esi
cmp esi, 2
jb 0x4110d1
mov edi, dword [esp + 0x14]
mov ecx, dword [edi - 8]
mov eax, 1
sub eax, dword [edi - 4]
or ecx, eax
jge 0x41112d
push 0
lea ecx, [esp + 0x18]
call fcn.00402950
mov edi, dword [esp + 0x14]
mov ebx, 0x50
call fcn.0042be20
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 0x4111ac
lea eax, [esp + 0x35c]
push eax
mov dword [esp + 0xc8], ebx
call fcn.00543bb0
add esp, 0xc
mov esi, str.IDS_TELNET
mov ecx, str.CheckRes
call fcn.00425600
lea edx, [esp + 0x354]
sub edx, eax
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
cmp cl, bl
jne 0x411181
xor eax, eax
lea ecx, [ecx]
mov cl, byte [esp + eax + 0x354]
mov byte [esp + eax + 0xc0], cl
inc eax
cmp cl, bl
jne 0x411190
jmp 0x411233
xor esi, esi
jmp 0x411140
lea ecx, [esp + 0x35c]
push ecx
mov dword [esp + 0xc8], 2
call fcn.00543bb0
add esp, 0xc
mov esi, str.IDS_TELNET_FAILED
mov ecx, str.CheckRes
call fcn.00425600
lea edx, [esp + 0x354]
sub edx, eax
nop
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
cmp cl, bl
jne 0x4111e0
lea eax, [esp + 0x40c]
mov edx, eax
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4111f3
lea edi, [esp + 0x354]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x411204
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 0x411220
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x411248
lea edx, [esp + 0x34]
push edx
call fcn.0041f520
add esp, 4
mov edx, dword [esp + 0x30]
cmp edx, ebx
je 0x41126a
lea eax, [esp + 0x40c]
mov ecx, eax
sub edx, ecx
jmp 0x411260
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
cmp cl, bl
jne 0x411260
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 0x411292
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 0x4112ba
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 0x4112e1
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 0x41130c
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.0053c99c
mov esp, ebp
pop ebp
ret