Function at 0x40b364
Capabilities:
Get networking parameters

Disassembly:
push ebp
lea ebp, [esp - 0x25a4]
mov eax, 0x2728
call fcn.0048cd40
mov eax, dword [0x4c002c]
xor eax, ebp
mov dword [ebp + 0x25a0], eax
push ebx
push esi
push 0x545c
mov ebx, ecx
xor esi, esi
push esi
push ebx
mov dword [ebp + 0x70], ebx
call fcn.0048635c
add esp, 0xc
push esi
push esi
push esi
push esi
push 2
push 2
call dword [0x496974]
cmp eax, 0xffffffff
mov dword [ebp + 0x7c], eax
je 0x40b63a
push esi
push esi
lea ecx, [ebp + 0x74]
push ecx
push 0x251c
lea ecx, [ebp + 0x84]
push ecx
push esi
push esi
push 0x4004747f
push eax
call dword [0x496990]
cmp eax, 0xffffffff
je 0x40b63a
mov eax, dword [ebp + 0x74]
push edi
push 0x4c
xor edx, edx
pop ecx
div ecx
cmp eax, esi
jle 0x40b411
lea edi, [ebp + 0x8c]
mov dword [ebp + 0x78], eax
test byte [edi - 8], 0xc
jne 0x40b409
mov esi, dword [edi]
lea eax, [ebx + 0x489c]
call fcn.0040a1c0
add edi, 0x4c
dec dword [ebp + 0x78]
jne 0x40b3f6
push dword [ebp + 0x7c]
call dword [0x496998]
mov edi, dword [0x496660]
mov esi, 0x288
push esi
push 1
call edi
pop ecx
pop ecx
lea ecx, [ebp + 0x80]
push ecx
push eax
mov dword [ebp + 0x7c], eax
mov dword [ebp + 0x80], esi
call fcn.00486d9c
cmp eax, 0x6f
jne 0x40b460
push dword [ebp + 0x7c]
call dword [0x49668c]
push dword [ebp + 0x80]
push 1
call edi
add esp, 0xc
mov dword [ebp + 0x7c], eax
mov esi, dword [ebp + 0x7c]
lea eax, [ebp + 0x80]
push eax
push esi
call fcn.00486d9c
test eax, eax
jne 0x40b4f3
test esi, esi
mov dword [ebp + 0x78], esi
je 0x40b4e9
jmp 0x40b480
mov esi, dword [ebp + 0x78]
cmp dword [esi + 0x1a4], 0
jne 0x40b4e0
lea edi, [esi + 0x1ac]
jmp 0x40b4dc
lea eax, [edi + 4]
push eax
call dword [0x496994]
test eax, eax
je 0x40b4da
xor dl, dl
movzx ecx, dl
mov ecx, dword [ebx + ecx*4 + 0x4e78]
cmp ecx, eax
je 0x40b4da
test ecx, ecx
je 0x40b4bc
inc dl
cmp dl, 0x7d
jb 0x40b4a1
jmp 0x40b4da
movzx esi, dl
mov dword [ebx + esi*4 + 0x4e78], eax
lea eax, [edi + 0x14]
push eax
call dword [0x496994]
mov dword [ebx + esi*4 + 0x506c], eax
mov esi, dword [ebp + 0x78]
mov edi, dword [edi]
test edi, edi
jne 0x40b491
mov esi, dword [esi]
test esi, esi
mov dword [ebp + 0x78], esi
jne 0x40b47d
push dword [ebp + 0x7c]
call dword [0x49668c]
pop ecx
push 0x7d
pop ecx
xor eax, eax
push 0x7d
lea edi, [ebp - 0x184]
rep stosd dword es:[edi], eax
pop ecx
lea edx, [ebx + 0x5260]
mov edi, edx
mov esi, 0x248
push esi
rep stosd dword es:[edi], eax
mov edi, dword [0x496280]
push 0x40
call edi
mov ebx, eax
lea eax, [ebp + 0x80]
push eax
push ebx
mov dword [ebp + 0x80], esi
call fcn.00486da2
cmp eax, 0x6f
jne 0x40b54a
push ebx
call dword [0x496284]
push dword [ebp + 0x80]
push 0x40
call edi
mov ebx, eax
lea eax, [ebp + 0x80]
push eax
push ebx
call fcn.00486da2
test eax, eax
jne 0x40b604
cmp byte [0x4cd342], al
jne 0x40b57b
push ebx
push 0x80
push 0x4cd342
call dword [0x496530]
add esp, 0xc
cmp byte [0x4ccc40], 0
mov esi, 0x4ccc40
jne 0x40b5ad
lea eax, [ebx + 0x84]
push eax
push esi
call fcn.0040d70d
push esi
call fcn.004863d4
add esp, 0xc
cmp byte [0x4ccc40], 0
mov byte [0x4ccd40], al
je 0x40b5b6
cmp byte [0x4ccc40], 0x20
jne 0x40b5cf
push str.workgroup
push esi
call fcn.0040d70d
push esi
call fcn.004863d4
add esp, 0xc
mov byte [0x4ccd40], al
cmp dword [ebp - 0x184], 0
jne 0x40b5fd
lea edi, [ebx + 0x10c]
jmp 0x40b5f9
lea eax, [edi + 4]
push eax
call dword [0x496994]
mov esi, eax
lea eax, [ebp - 0x184]
call fcn.0040a1c0
mov edi, dword [edi]
test edi, edi
jne 0x40b5e0
push ebx
call dword [0x496284]
xor ebx, ebx
mov esi, dword [ebp + ebx*4 - 0x184]
test esi, esi
je 0x40b639
mov edi, dword [ebp + 0x70]
push esi
push 0x7d
lea edx, [edi + 0x489c]
call fcn.0040a1ea
test eax, eax
pop ecx
pop ecx
jne 0x40b633
lea eax, [edi + 0x5260]
call fcn.0040a1c0
inc ebx
cmp ebx, 0x7d
jl 0x40b606
pop edi
mov ecx, dword [ebp + 0x25a0]
pop esi
xor ecx, ebp
pop ebx
call fcn.004862e5
add ebp, 0x25a4
leave
ret