Function at 0x5fda3902
Capabilities:
Initialize winsock library

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4d4
mov eax, dword [0x5fde94a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
and dword [ebp - 0x1a4], ebx
and dword [ebp - 0x1b0], ebx
push edi
mov eax, dword [esi + 4]
mov dword [ebp - 0x19c], ebx
mov dword [ebp - 0x1a8], eax
mov eax, dword [0x5fde9010]
mov edi, 0x800
cmp eax, 0x5fde9010
je 0x5fda3ab4
test dword [eax + 0x1c], edi
jne 0x5fdb9499
lea eax, [ebp - 0x198]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov edi, eax
test edi, edi
jne 0x5fda3a4e
mov eax, dword [esi]
mov dword [ebp - 0x1b0], 1
test eax, eax
je 0x5fdb94c7
mov ebx, dword [esi + 0x2c]
mov edi, dword [eax + 4]
mov ecx, dword [esi + 0x18]
mov dword [ebp - 0x1a0], ebx
test ebx, ebx
jne 0x5fda39b7
test ecx, ecx
je 0x5fdb94cf
call fcn.5fd9e0c7
mov dword [ebp - 0x19c], eax
mov ebx, eax
test eax, eax
je 0x5fdb94cf
mov edx, dword [esi + 4]
lea ecx, [ebp - 0x1a4]
push ebx
push edi
call fcn.5fda1d36
mov edi, eax
test edi, edi
jne 0x5fda3a48
test dword [ebp - 0x1a8], 0x1000
mov ecx, dword [ebp - 0x1a4]
mov eax, dword [ecx + 8]
mov dword [esi + 0x20], ecx
mov ecx, esi
mov dword [esi + 0x24], eax
jne 0x5fdb968c
call fcn.5fda3ace
mov edi, eax
cmp edi, 0x5b4
je 0x5fda3ac2
test dword [ebp - 0x1a8], 0x4000
jne 0x5fda3ac2
cmp edi, 0x232a
je 0x5fda3ac2
push dword [ebp - 0x1a4]
call sym.DNSAPI.dll_NetInfo_Free
mov eax, dword [ebp - 0x1a0]
xor ecx, ecx
push 0x40
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x34]
push ecx
push eax
mov dword [esi + 0x20], ecx
mov dword [esi + 0x24], ecx
call sub.api_ms_win_core_crt_l1_1_0.dll_memset
add esp, 0xc
mov ebx, dword [ebp - 0x19c]
xor eax, eax
cmp dword [esi + 0x10], eax
je 0x5fdb969b
test ebx, ebx
je 0x5fda3a64
mov ecx, ebx
call fcn.5fd83e2e
cmp dword [ebp - 0x1b0], 0
je 0x5fda3a73
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [0x5fde9010]
mov ebx, 0x5fde9010
cmp ecx, ebx
je 0x5fda3a8f
test dword [ecx + 0x1c], 0x400
jne 0x5fdb96ab
mov eax, dword [0x5fde9010]
test dword [eax + 0x1c], 0x800
jne 0x5fdb96c4
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.5fd83560
mov esp, ebp
pop ebp
ret
test dword [eax + 0x1c], edi
jne 0x5fdb94b7
jmp 0x5fda3957
mov ecx, esi
jmp 0x5fdb968c
push esi
push dword [eax + 0x14]
mov edx, 0x5fdbda48
push dword [eax + 0x10]
push 0x1e
pop ecx
call fcn.5fdc7d09
mov eax, dword [0x5fde9010]
jmp 0x5fda3ab4
push esi
push 0x5fdb9704
call fcn.5fdd9d64
jmp 0x5fda3957
push 0x57
pop edi
jmp 0x5fda3a4e
push dword [esi + 4]
and dword [ebp - 0x1ac], 0
lea ecx, [ebp - 0x340]
push 0x64
pop edx
call fcn.5fdc7606
mov dword [ebp - 0x1a0], eax
cmp eax, 0x64
jbe 0x5fdb952d
push 0x57
pop edi
mov ecx, dword [0x5fde9010]
cmp ecx, 0x5fde9010
je 0x5fda3a48
test dword [ecx + 0x1c], 0x400
je 0x5fda3a48
push eax
push dword [ecx + 0x14]
mov edx, 0x5fdbda48
push dword [ecx + 0x10]
push 0x1f
pop ecx
call fcn.5fdc7d09
jmp 0x5fda3a48
mov edx, dword [esi + 4]
lea eax, [ebp - 0x1a0]
push edi
push eax
lea eax, [ebp - 0x4d0]
push eax
lea ecx, [ebp - 0x340]
call fcn.5fdc6f37
mov ebx, dword [ebp - 0x1a0]
mov edi, eax
test ebx, ebx
jne 0x5fdb9568
test edi, edi
jne 0x5fda3a48
mov edi, 0x267c
jmp 0x5fda3a48
xor eax, eax
mov dword [ebp - 0x1a0], eax
test ebx, ebx
je 0x5fda3a48
mov edx, dword [ebp + eax*4 - 0x4d0]
mov ecx, dword [ebp + eax*4 - 0x340]
mov dword [ebp - 0x1a4], edx
test edx, edx
jne 0x5fdb95c2
call fcn.5fd83e2e
mov ecx, dword [ebp - 0x1ac]
mov eax, dword [ebp - 0x1a0]
inc eax
mov dword [ebp - 0x1a0], eax
cmp eax, ebx
jb 0x5fdb9578
test ecx, ecx
je 0x5fda3a48
dec ebx
neg ebx
sbb ebx, ebx
not ebx
and edi, ebx
jmp 0x5fda3a48
test dword [ebp - 0x1a8], 0x1000
mov eax, dword [edx + 8]
mov dword [esi + 0x24], eax
mov dword [esi + 0x20], edx
je 0x5fdb95dc
mov dword [esi + 0x2c], ecx
jmp 0x5fdb9611
mov ecx, esi
call fcn.5fda3ace
mov edi, eax
cmp edi, 0x5b4
je 0x5fdb9601
test dword [ebp - 0x1a8], 0x4000
jne 0x5fdb9601
cmp edi, 0x232a
jne 0x5fdb961a
mov ecx, dword [ebp - 0x1a0]
mov eax, dword [ebp + ecx*4 - 0x340]
mov dword [esi + 0x2c], eax
mov ecx, esi
call fcn.5fdd057b
mov edi, eax
push dword [ebp - 0x1a4]
call sym.DNSAPI.dll_NetInfo_Free
mov ecx, dword [ebp - 0x1a0]
mov ecx, dword [ebp + ecx*4 - 0x340]
call fcn.5fd83e2e
xor eax, eax
push 0x40
push eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x24], eax
lea eax, [esi + 0x34]
push eax
call sub.api_ms_win_core_crt_l1_1_0.dll_memset
add esp, 0xc
test edi, edi
je 0x5fdb967b
cmp dword [esi + 8], 0
je 0x5fdb9595
cmp edi, 0x232e
je 0x5fdb967b
cmp edi, 0x232f
je 0x5fdb967b
cmp edi, 0x2330
jne 0x5fdb9595
mov ecx, dword [ebp - 0x1b0]
mov dword [ebp - 0x1ac], ecx
jmp 0x5fdb959b
mov dword [esi + 0x2c], ebx
call fcn.5fdd057b
mov edi, eax
jmp 0x5fda3a1d
push eax
push eax
mov edx, edi
mov ecx, esi
call fcn.5fda3598
jmp 0x5fda3a59
push edi
push dword [ecx + 0x14]
mov edx, 0x5fdbda48
push dword [ecx + 0x10]
push 0x20
pop ecx
call fcn.5fdc7d09
jmp 0x5fda3a8f
push esi
push 0x5fdb971c
call fcn.5fdd9d64
mov eax, dword [0x5fde9010]
cmp eax, ebx
je 0x5fda3aa1
test dword [eax + 0x1c], 0x400
je 0x5fda3aa1
push dword [eax + 0x14]
mov edx, 0x5fdbda48
push dword [eax + 0x10]
push 0x21
pop ecx
call fcn.5fdc44b5
jmp 0x5fda3aa1