Function at 0x40b90d
Capabilities:
Initialize winsock library
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x4ec
mov eax, dword [0x435280]
xor eax, esp
mov dword [esp + 0x4e4], eax
or dword [esp + 0x4c], 0xffffffff
mov eax, ecx
mov ecx, dword [esp + 0x4f0]
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x4f4]
push ebx
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x4fc]
push ebp
mov ebp, dword [esp + 0x504]
mov dword [esp + 0x50], ecx
xor ecx, ecx
and dword [esp + 0x30], ecx
and dword [esp + 0x40], ecx
push esi
push edi
mov esi, edx
mov dword [esp + 0x44], ecx
xor edi, edi
mov dword [esp + 0x24], eax
lea edx, [esp + 0x14]
mov dword [esp + 0x34], ebp
mov ecx, eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x60], 0x103
call fcn.004011a0
mov ebx, eax
mov dword [esp + 0x4c], ebx
test ebx, ebx
je 0x40bc75
push dword [esp + 0x14]
mov edx, ebx
mov ecx, esi
call fcn.0040fbe1
pop ecx
test eax, eax
je 0x40b9ae
mov esi, dword [eax + 0x24]
mov dword [esp + 0x28], esi
jmp 0x40b9b2
and dword [esp + 0x28], edi
imul ecx, ebp, 0x274
lea edx, [esp + 0x3c]
call fcn.0040122f
mov ecx, eax
mov dword [esp + 0x18], ecx
test ecx, ecx
je 0x40bc54
xor edx, edx
xor eax, eax
mov dword [esp + 0x50], edx
mov dword [esp + 0x68], eax
test ebp, ebp
jle 0x40bbca
mov esi, dword [esp + 0x58]
mov dword [esp + 0x30], esi
xor edi, edi
mov dword [esp + 0x64], edi
cmp dword [esp + 0x14], edi
jle 0x40bbb6
and dword [esp + 0x54], edi
lea eax, [edx + 1]
imul ebp, edx, 0x274
mov dword [esp + 0x20], eax
add ebp, ecx
lea ecx, [ebx + 0x28]
mov dword [esp + 0x40], ecx
mov eax, dword [esi]
lea edx, [ecx + 0x4c]
cmp eax, dword [edx - 0x50]
jne 0x40bb85
cmp dword [ecx], 6
jge 0x40bc50
lea eax, [ecx - 0x28]
mov edi, ebp
push edx
push dword [esp + 0x70]
mov esi, eax
mov dword [esp + 0x34], eax
mov ecx, 0x9d
rep movsd dword es:[edi], dword [esi]
mov esi, eax
lea edi, [esp + 0x78]
push str._s_over___s_
lea eax, [ebp + 0x74]
mov ecx, 0x9d
push 0xff
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.0040a436
add esp, 0x14
test eax, eax
js 0x40bc50
mov esi, dword [esp + 0x40]
mov esi, dword [esi]
cmp esi, 2
jl 0x40bb34
add esi, 0xfffffffe
js 0x40bb34
mov edi, dword [esp + 0x54]
add edi, 0xb
add edi, esi
lea edi, [ebx + edi*4]
push dword [edi]
mov edx, dword [esp + 0x18]
mov ecx, ebx
call fcn.0040faa8
add esp, 4
mov dword [esp + 0x48], eax
cmp eax, 1
je 0x40bab6
sub edi, 4
dec esi
jns 0x40ba92
jmp 0x40bb38
mov ecx, dword [esp + 0x2c]
lea edx, [esi + 1]
push 0
call fcn.0040fc1e
mov eax, dword [esp + 0x44]
add esp, 4
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x2c], edx
mov dword [eax + 0x48], ecx
cmp edx, dword [ebp + 0x28]
jge 0x40bafa
lea ecx, [edx*4 + 0x2c]
add ecx, ebp
lea edi, [ebp + 0x30]
mov eax, dword [ecx]
inc edx
mov dword [edi], eax
lea ecx, [ecx + 4]
lea edi, [edi + 4]
cmp edx, dword [ebp + 0x28]
jl 0x40bae7
lea edx, [esi + 1]
mov edi, dword [esp + 0x28]
xor ecx, ecx
inc ecx
mov dword [ebp + 0x2c], edi
push esi
mov esi, dword [esp + 0x24]
mov eax, ecx
sub eax, edx
mov dword [esp + 0x3c], ecx
add dword [ebp + 0x28], eax
lea ecx, [esp + 0x74]
or dword [ebp], 0x20000
mov edx, ebx
push esi
push dword [esp + 0x1c]
call fcn.0040c15d
mov eax, dword [esp + 0x54]
add esp, 0xc
jmp 0x40bb40
mov eax, dword [esp + 0x48]
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x20]
cmp eax, 1
je 0x40bb63
push edi
xor edx, edx
mov ecx, ebp
call fcn.0040fc1e
mov eax, dword [esp + 0x98]
add esp, 4
mov dword [ebp + 0x30], eax
or dword [ebp], 0x20000
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x40]
inc edx
mov edi, dword [esp + 0x64]
inc esi
mov dword [esp + 0x20], esi
add ebp, 0x274
mov esi, dword [esp + 0x30]
mov dword [esp + 0x50], edx
jmp 0x40bb89
mov edx, dword [esp + 0x50]
add dword [esp + 0x54], 0x9d
inc edi
add ecx, 0x274
mov dword [esp + 0x64], edi
mov dword [esp + 0x40], ecx
cmp edi, dword [esp + 0x14]
jl 0x40ba15
mov ebp, dword [esp + 0x34]
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x18]
inc eax
add esi, 4
mov dword [esp + 0x68], eax
mov dword [esp + 0x30], esi
cmp eax, ebp
jl 0x40b9eb
xor edi, edi
test ebp, ebp
jle 0x40bc05
lea esi, [ecx + 0x14]
push esi
call dword [sym.imp.RPCRT4.dll_UuidCreate]
test eax, eax
jne 0x40bc4a
mov ecx, dword [esp + 0x24]
lea eax, [esi - 0x14]
push 1
push eax
push dword [esp + 0x24]
mov edx, esi
call fcn.0040b7f6
add esp, 0xc
test eax, eax
jne 0x40bc50
inc edi
add esi, 0x274
cmp edi, ebp
jl 0x40bbd3
cmp dword [esp + 0x38], 1
mov ecx, dword [esp + 0x24]
jne 0x40bf6a
lea edx, [esp + 0x1c]
call fcn.004011a0
mov edx, eax
mov dword [esp + 0x44], edx
test edx, edx
je 0x40bc50
test ebp, ebp
jle 0x40bc9f
mov esi, dword [esp + 0x18]
mov edi, ebp
add esi, 0x24
push dword [esp + 0x1c]
lea ecx, [esi - 0x10]
call fcn.0040fbe1
pop ecx
test eax, eax
je 0x40bc92
mov eax, dword [eax + 0x24]
jmp 0x40bc94
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [esp + 0x10]
mov ecx, ebx
call fcn.0040124d
mov eax, dword [esp + 0x44]
test eax, eax
je 0x40bc6a
mov ecx, eax
call fcn.0040124d
test edi, edi
je 0x40bc75
mov ecx, edi
call fcn.0040124d
mov ecx, dword [esp + 0x4f4]
mov eax, dword [esp + 0x5c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00410875
add esp, 0x4ec
ret
xor eax, eax
mov dword [esi], eax
add esi, 0x274
dec edi
jne 0x40bc34
xor edi, edi
cmp dword [esp + 0x14], edi
jle 0x40bd70
lea esi, [ebx + 0x70]
cmp dword [esi], 0
je 0x40bd5b
xor edx, edx
cmp dword [esi - 0x48], edx
jle 0x40bce9
mov ebx, dword [esp + 0x18]
lea ecx, [esi - 0x44]
cmp dword [ecx], 0
jne 0x40bcdc
imul eax, dword [esi], 0x274
mov eax, dword [eax + ebx - 0x250]
mov dword [ecx], eax
and dword [esi], 0
inc edx
add ecx, 4
cmp edx, dword [esi - 0x48]
jl 0x40bcc5
mov ebx, dword [esp + 0x4c]
lea eax, [esp + 0x3c]
mov dword [esp + 0x60], 0x103
push eax
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x2f0]
push eax
lea ebp, [esi - 0x5c]
push ebp
call dword [sym.imp.WS2_32.dll_WSCGetProviderPath]
cmp eax, 0xffffffff
je 0x40bc50
cmp dword [esp + 0x24], 1
jne 0x40bc50
lea eax, [esp + 0x3c]
push eax
push 1
lea eax, [esi - 0x70]
push eax
lea eax, [esp + 0x2f4]
push eax
push ebp
call dword [0x437434]
cmp eax, 0xffffffff
je 0x40bc50
push dword [esi - 0x48]
lea eax, [esi + 4]
push eax
push dword [esi - 0x4c]
push str.Updated_entry_ID:__d:__S__chain_len___d__n
call fcn.00401d4f
add esp, 0x10
inc edi
add esi, 0x274
cmp edi, dword [esp + 0x14]
jl 0x40bcae
mov ebp, dword [esp + 0x34]
mov ecx, ebx
call fcn.0040124d
mov ecx, dword [esp + 0x44]
call fcn.0040124d
xor ecx, ecx
mov dword [esp + 0x44], ecx
call dword [sym.imp.WS2_32.dll_WSACleanup]
lea eax, [esp + 0x70]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x14]
call fcn.004011a0
mov ebx, eax
mov dword [esp + 0x4c], ebx
test ebx, ebx
je 0x40bc75
mov esi, dword [esp + 0x14]
lea edx, [esp + 0x3c]
mov ecx, esi
shl ecx, 2
call fcn.0040122f
mov edi, eax
mov dword [esp + 0x10], edi
test edi, edi
je 0x40bc54
xor edi, edi
test ebp, ebp
jle 0x40be1a
mov ebp, eax
mov eax, dword [esp + 0x58]
sub eax, ebp
mov dword [esp + 0x1c], eax
mov ecx, dword [eax + ebp]
mov edx, ebx
push esi
call fcn.0040fbb6
add esp, 4
test eax, eax
je 0x40bc50
mov dword [eax + 0x70], 1
inc edi
mov eax, dword [eax + 0x24]
mov dword [ebp], eax
add ebp, 4
mov eax, dword [esp + 0x1c]
cmp edi, dword [esp + 0x34]
jl 0x40bde9
xor ebp, ebp
mov dword [esp + 0x30], ebp
cmp dword [esp + 0x34], ebp
jle 0x40bf0c
mov eax, dword [esp + 0x58]
mov edx, ebx
push esi
mov ecx, dword [eax + ebp*4]
call fcn.0040fbb6
mov edx, eax
add esp, 4
mov dword [esp + 0x2c], edx
test edx, edx
je 0x40bc50
push dword [edx + 0x28]
lea ecx, [edx + 0x74]
push ecx
push dword [edx + 0x24]
push str.Looping_through:__d:__S__chain_len___d__n
call fcn.00401d4f
mov eax, dword [edx + 0x28]
xor ecx, ecx
add esp, 0x10
inc ecx
dec eax
cmp eax, ecx
jle 0x40befd
mov ebp, ecx
xor eax, eax
test esi, esi
jle 0x40be96
lea ecx, [ebx + 0x24]
mov esi, dword [edx + ebp*4 + 0x2c]
cmp esi, dword [ecx]
mov esi, dword [esp + 0x14]
je 0x40bf4b
inc eax
add ecx, 0x274
cmp eax, esi
jl 0x40be7b
xor eax, eax
mov dword [esp + 0x18], eax
test esi, esi
jle 0x40beec
mov eax, esi
lea ecx, [ebx + 0x2c]
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x38], eax
cmp dword [ecx - 4], 2
jl 0x40bed3
cmp dword [ecx], esi
jne 0x40bed3
cmp dword [ecx + 0x44], 0
jne 0x40bed3
mov eax, dword [ecx - 8]
mov dword [ebx + edi*4], eax
inc edi
mov eax, dword [esp + 0x38]
mov dword [ecx + 0x44], 1
add ecx, 0x274
dec eax
mov dword [esp + 0x38], eax
jne 0x40beb1
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x4c]
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + 0x28]
inc ebp
dec eax
cmp ebp, eax
jl 0x40be72
mov ebp, dword [esp + 0x30]
inc ebp
mov dword [esp + 0x30], ebp
cmp ebp, dword [esp + 0x34]
jl 0x40be2a
test esi, esi
jle 0x40bf32
mov eax, dword [esp + 0x10]
lea edx, [ebx + 0x24]
mov ecx, esi
lea edi, [eax + edi*4]
cmp dword [edx + 0x4c], 0
jne 0x40bf29
mov eax, dword [edx]
mov dword [edi], eax
add edi, 4
add edx, 0x274
dec ecx
jne 0x40bf1c
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x3c]
mov ecx, dword [esp + 0x24]
mov edx, edi
push eax
push esi
call fcn.0040c375
pop ecx
pop ecx
jmp 0x40bf77
imul eax, eax, 0x274
cmp dword [eax + ebx + 0x28], 0
jne 0x40bf61
mov eax, dword [eax + ebx + 0x24]
jmp 0x40be98
mov eax, dword [eax + ebx + 0x2c]
jmp 0x40be98
mov edx, dword [esp + 0x28]
call fcn.0040c271
mov edi, dword [esp + 0x10]
test eax, eax
jne 0x40bc54
and dword [esp + 0x5c], eax
jmp 0x40bc54