Function at 0x513950
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5d1727
mov eax, dword fs:[0]
push eax
sub esp, 0x330
mov eax, dword [0x65d4e4]
xor eax, esp
mov dword [esp + 0x328], eax
push ebx
push esi
push edi
mov eax, dword [0x65d4e4]
xor eax, esp
push eax
lea eax, [esp + 0x340]
mov dword fs:[0], eax
mov dword [esp + 0x20], ecx
call fcn.0041aef0
mov esi, dword [eax + 0x80]
xor edi, edi
cmp esi, edi
je 0x514279
xor eax, eax
mov dword [esp + 0x12d], eax
mov word [esp + 0x131], ax
mov byte [esp + 0x133], al
lea eax, [esp + 0x24]
push eax
push edi
push edi
push 0x86
push 0x17
mov dword [esp + 0x38], edi
mov byte [esp + 0x140], 0
call esi
cmp eax, 0x6f
jne 0x514279
mov ecx, dword [esp + 0x24]
push ecx
lea ecx, [esp + 0x30]
call fcn.0043eb10
mov ebx, eax
cmp ebx, edi
mov dword [esp + 0x2c], ebx
je 0x513a0d
mov edx, dword [esp + 0x30]
push edx
push edi
push ebx
call fcn.005b5540
add esp, 0xc
cmp ebx, edi
mov dword [esp + 0x348], edi
jne 0x513ae2
push 1
push 2
lea ecx, [esp + 0x74]
call fcn.0040b040
lea eax, [esp + 0x6c]
push 0x5f4658
push eax
mov byte [esp + 0x350], 1
call fcn.00409b60
add esp, 8
lea ecx, [esp + 0xf0]
push ecx
lea ecx, [esp + 0x70]
call fcn.004094f0
mov esi, 0x10
cmp dword [eax + 0x18], esi
mov byte [esp + 0x348], 2
jb 0x513a6b
mov eax, dword [eax + 4]
jmp 0x513a6e
add eax, 4
push eax
push str.BaseLib::CIPConfig::BaseIPv6Config
push 0x6cc
push str..commonipconfig.cpp
push 0xf0000000
call fcn.00409860
mov ecx, eax
call fcn.004fb930
cmp dword [esp + 0x108], esi
jb 0x513aa8
mov edx, dword [esp + 0xf4]
push edx
call fcn.00595eb8
add esp, 4
lea ecx, [esp + 0xb8]
mov byte [esp + 0x348], 0
call fcn.00409e00
lea eax, [esp + 0xb8]
push eax
mov dword [esp + 0xbc], vtable.std::ios_base.0
call fcn.005cdcde
push edi
call fcn.00595eb8
add esp, 8
jmp 0x514279
lea ecx, [esp + 0x24]
push ecx
push ebx
push edi
push 0x86
push 0x17
call esi
cmp eax, edi
jne 0x514270
mov dword [esp + 0x14], ebx
jmp 0x513b04
mov ebx, dword [esp + 0x14]
lea ecx, [esp + 0x44]
call fcn.00528f40
mov edx, dword [ebx + 0x24]
push edi
push edx
lea ecx, [esp + 0x4c]
mov byte [esp + 0x350], 3
call fcn.00529100
mov ecx, eax
mov dword [esp + 0x128], 0xf
mov dword [esp + 0x124], edi
mov byte [esp + 0x114], 0
lea esi, [ecx + 1]
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x513b42
sub ecx, esi
push ecx
push eax
lea ecx, [esp + 0x118]
call fcn.00409790
lea eax, [esp + 0x110]
push eax
mov byte [esp + 0x34c], 4
call fcn.004fc250
add esp, 4
cmp dword [ebp + 8], 1
jne 0x513bb7
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 0x14]
push edx
lea eax, [esp + 0x114]
push eax
call fcn.0050f350
add esp, 8
test eax, eax
je 0x513bb7
lea ecx, [esp + 0x110]
call fcn.0040bf30
lea ecx, [esp + 0x44]
mov byte [esp + 0x348], 0
call fcn.00528f50
jmp 0x51425b
mov eax, dword [ebx + 0x34]
cmp eax, 4
lea ecx, [ebx + 0x2c]
lea edx, [esp + 0x12c]
jb 0x513be4
lea esp, [esp]
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x513be8
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x513bd0
cmp eax, edi
je 0x513c45
movzx edi, byte [ecx]
movzx esi, byte [edx]
sub esi, edi
jne 0x513c37
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x513c45
movzx edi, byte [ecx]
movzx esi, byte [edx]
sub esi, edi
jne 0x513c37
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x513c45
movzx edi, byte [ecx]
movzx esi, byte [edx]
sub esi, edi
jne 0x513c37
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x513c45
movzx ecx, byte [ecx]
movzx esi, byte [edx]
sub esi, ecx
je 0x513c45
test esi, esi
mov eax, 1
jg 0x513c47
or eax, 0xffffffff
jmp 0x513c47
xor eax, eax
xor edi, edi
cmp eax, edi
jne 0x513c97
cmp dword [esp + 0x128], 0x10
jb 0x513c67
mov edx, dword [esp + 0x114]
push edx
call fcn.00595eb8
add esp, 4
lea ecx, [esp + 0x44]
mov dword [esp + 0x128], 0xf
mov dword [esp + 0x124], edi
mov byte [esp + 0x114], 0
mov byte [esp + 0x348], 0
call fcn.00528f50
jmp 0x51425b
push 0xf4
call fcn.00595e8d
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, edi
mov byte [esp + 0x348], 5
je 0x513cbd
mov ecx, eax
call fcn.0050f040
mov edi, eax
mov dword [esp + 0x28], edi
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x118]
lea ecx, [edi + 4]
push eax
mov byte [esp + 0x354], 6
call fcn.00407e40
mov ecx, dword [ebx + 0xc]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x513ce5
sub eax, esi
push eax
push ecx
lea ecx, [edi + 0x3c]
call fcn.00409790
mov ecx, dword [ebx + 0x34]
mov dword [edi + 0x88], ecx
lea eax, [edi + 0x78]
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov edx, dword [ebx + 0x34]
push edx
lea ecx, [ebx + 0x2c]
push ecx
push eax
call fcn.005b74f0
mov esi, dword [ebx + 0x10]
add esp, 0xc
test esi, esi
je 0x513e5e
push 0x1ff
lea eax, [esp + 0x139]
push 0
push eax
mov byte [esp + 0x140], 0
call fcn.005b5540
mov eax, dword [esi + 0x10]
mov ebx, dword [sym.imp.WS2_32.dll_WSAAddressToStringA]
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esi + 0xc]
lea edx, [esp + 0x138]
push edx
push 0
push eax
push ecx
mov dword [esp + 0x24], 0x200
call ebx
push 4
lea edx, [esp + 0x138]
push str.fe80
push edx
call fcn.005b6c36
add esp, 0xc
test eax, eax
je 0x513e51
push 5
lea eax, [esp + 0x138]
push str.2002:
push eax
call fcn.005b6c36
add esp, 0xc
test eax, eax
je 0x513e51
lea ecx, [esp + 0x134]
push 0x5f5800
push ecx
call fcn.005b24e5
add esp, 8
test eax, eax
je 0x513e51
push 5
lea edx, [esp + 0x138]
push str.2001:
push edx
call fcn.005b6c36
add esp, 0xc
test eax, eax
je 0x513e51
mov dword [esp + 0x108], 0xf
mov dword [esp + 0x104], 0
mov byte [esp + 0xf4], 0
lea eax, [esp + 0x134]
push eax
lea ecx, [esp + 0xf4]
mov byte [esp + 0x34c], 7
call fcn.0040bdc0
movzx ecx, byte [esi + 0x2c]
lea edx, [esp + 0xf0]
mov dword [esp + 0x10c], ecx
push edx
lea ecx, [edi + 0x98]
call fcn.0043cf90
lea ecx, [esp + 0xf0]
mov byte [esp + 0x348], 6
call fcn.0040c790
mov esi, dword [esi + 8]
test esi, esi
jne 0x513d29
jmp 0x513e64
mov ebx, dword [sym.imp.WS2_32.dll_WSAAddressToStringA]
call fcn.004ff520
test eax, eax
je 0x513f7f
mov eax, dword [esp + 0x14]
mov esi, dword [eax + 0xa4]
test esi, esi
je 0x513f7f
push 0x1ff
lea ecx, [esp + 0x139]
push 0
push ecx
mov byte [esp + 0x140], 0
call fcn.005b5540
mov ecx, dword [esi + 0x10]
add esp, 0xc
lea edx, [esp + 0x10]
push edx
mov edx, dword [esi + 0xc]
lea eax, [esp + 0x138]
push eax
push 0
push ecx
push edx
mov dword [esp + 0x24], 0x200
call ebx
push 4
lea eax, [esp + 0x138]
push str.fe80
push eax
call fcn.005b6c36
add esp, 0xc
test eax, eax
je 0x513f74
push 5
lea ecx, [esp + 0x138]
push str.2002:
push ecx
call fcn.005b6c36
add esp, 0xc
test eax, eax
je 0x513f74
lea edx, [esp + 0x134]
push 0x5f5800
push edx
call fcn.005b24e5
add esp, 8
test eax, eax
je 0x513f74
push 5
lea eax, [esp + 0x138]
push str.2001:
push eax
call fcn.005b6c36
add esp, 0xc
test eax, eax
je 0x513f74
lea ecx, [esp + 0x134]
push ecx
lea ecx, [esp + 0xf4]
call fcn.0040be30
lea edx, [esp + 0xf0]
push edx
lea ecx, [edi + 0xb0]
mov byte [esp + 0x34c], 8
call fcn.0043cd50
lea ecx, [esp + 0xf0]
mov byte [esp + 0x348], 6
call fcn.0040bf30
mov esi, dword [esi + 8]
test esi, esi
jne 0x513e83
mov eax, dword [esp + 0x14]
mov esi, dword [eax + 0x1c]
test esi, esi
je 0x51408a
push 0x1ff
lea ecx, [esp + 0x139]
push 0
push ecx
mov byte [esp + 0x140], 0
call fcn.005b5540
mov ecx, dword [esi + 0x10]
add esp, 0xc
lea edx, [esp + 0x10]
push edx
mov edx, dword [esi + 0xc]
lea eax, [esp + 0x138]
push eax
push 0
push ecx
push edx
mov dword [esp + 0x24], 0x200
call ebx
push 4
lea eax, [esp + 0x138]
push str.fe80
push eax
call fcn.005b6c36
add esp, 0xc
test eax, eax
je 0x51407f
push 5
lea ecx, [esp + 0x138]
push str.2002:
push ecx
call fcn.005b6c36
add esp, 0xc
test eax, eax
je 0x51407f
lea edx, [esp + 0x134]
push 0x5f5800
push edx
call fcn.005b24e5
add esp, 8
test eax, eax
je 0x51407f
push 5
lea eax, [esp + 0x138]
push str.2001:
push eax
call fcn.005b6c36
add esp, 0xc
test eax, eax
je 0x51407f
lea ecx, [esp + 0x134]
push ecx
lea ecx, [esp + 0xf4]
call fcn.0040be30
lea edx, [esp + 0xf0]
push edx
lea ecx, [edi + 0xc8]
mov byte [esp + 0x34c], 9
call fcn.0043cd50
lea ecx, [esp + 0xf0]
mov byte [esp + 0x348], 6
call fcn.0040bf30
mov esi, dword [esi + 8]
test esi, esi
jne 0x513f8e
cmp dword [edi + 0xa0], 0
jne 0x5140a1
mov eax, dword [esp + 0x20]
cmp dword [eax + 0x10], 0
je 0x514231
lea ecx, [esp + 0x54]
call fcn.00528f40
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0x28]
push 0
push edx
lea ecx, [esp + 0x5c]
mov byte [esp + 0x350], 0xa
call fcn.00529100
push eax
lea ecx, [esp + 0xf4]
call fcn.0040be30
mov esi, dword [esp + 0x20]
mov eax, dword [esi + 8]
mov eax, dword [eax]
add esi, 4
mov byte [esp + 0x348], 0xb
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x34], esi
mov eax, dword [esi + 4]
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x3c], eax
call fcn.0048fd20
test al, al
je 0x5141cb
cmp dword [edi + 0x54], 0x10
jb 0x51411a
mov ebx, dword [edi + 0x40]
jmp 0x51411d
lea ebx, [edi + 0x40]
lea ecx, [esp + 0x18]
call fcn.00413390
mov eax, dword [eax]
add eax, 0x3c
cmp dword [eax + 0x18], 0x10
jb 0x514136
mov eax, dword [eax + 4]
jmp 0x514139
add eax, 4
push ebx
push eax
call fcn.005b24e5
add esp, 8
test eax, eax
lea ecx, [esp + 0x18]
je 0x514159
push 0
lea edx, [esp + 0x68]
push edx
call fcn.00415360
jmp 0x5140f2
call fcn.00413390
lea ecx, [edi + 0x98]
push ecx
mov ecx, dword [eax]
add ecx, 0x98
call fcn.00510b50
lea ecx, [esp + 0x18]
call fcn.00413390
mov ecx, dword [eax]
lea edx, [edi + 0xb0]
push edx
add ecx, 0xb0
call fcn.0047ec70
lea ecx, [esp + 0x18]
call fcn.00413390
lea ecx, [edi + 0xc8]
push ecx
mov ecx, dword [eax]
add ecx, 0xc8
call fcn.0047ec70
lea ecx, [esp + 0x18]
call fcn.00413390
mov ecx, dword [eax]
push 0xffffffffffffffff
push 0
lea edx, [esp + 0xf8]
add ecx, 0x20
push edx
call fcn.00407e40
mov eax, dword [esi + 4]
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], esi
call fcn.00490240
test al, al
je 0x514214
push 0xffffffffffffffff
push 0
lea edx, [esp + 0xf8]
lea ecx, [edi + 0x20]
push edx
call fcn.00407e40
lea eax, [esp + 0x10]
push eax
mov ecx, esi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x14], edi
call fcn.0050e630
lea ecx, [esp + 0xf0]
call fcn.0040bf30
lea ecx, [esp + 0x54]
mov byte [esp + 0x348], 6
call fcn.00528f50
lea ecx, [esp + 0x28]
call fcn.0050f330
lea ecx, [esp + 0x110]
call fcn.0040bf30
lea ecx, [esp + 0x44]
mov byte [esp + 0x348], 0
call fcn.00528f50
mov ebx, dword [esp + 0x14]
mov ebx, dword [ebx + 8]
xor edi, edi
cmp ebx, edi
mov dword [esp + 0x14], ebx
jne 0x513b00
mov ebx, dword [esp + 0x2c]
push ebx
call fcn.00595eb8
add esp, 4
mov ecx, dword [esp + 0x340]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x328]
xor ecx, esp
call fcn.005b1988
mov esp, ebp
pop ebp
ret 4