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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5d0707
mov eax, dword fs:[0]
push eax
sub esp, 0x330
mov eax, dword [0x65b4e4]
xor eax, esp
mov dword [esp + 0x328], eax
push ebx
push esi
push edi
mov eax, dword [0x65b4e4]
xor eax, esp
push eax
lea eax, [esp + 0x340]
mov dword fs:[0], eax
mov dword [esp + 0x20], ecx
call fcn.0041a460
mov esi, dword [eax + 0x80]
xor edi, edi
cmp esi, edi
je 0x513249
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 0x513249
mov ecx, dword [esp + 0x24]
push ecx
lea ecx, [esp + 0x30]
call fcn.0043daa0
mov ebx, eax
cmp ebx, edi
mov dword [esp + 0x2c], ebx
je 0x5129dd
mov edx, dword [esp + 0x30]
push edx
push edi
push ebx
call fcn.005b4520
add esp, 0xc
cmp ebx, edi
mov dword [esp + 0x348], edi
jne 0x512ab2
push 1
push 2
lea ecx, [esp + 0x74]
call fcn.0040b160
lea eax, [esp + 0x6c]
push 0x5f3658
push eax
mov byte [esp + 0x350], 1
call fcn.00409c80
add esp, 8
lea ecx, [esp + 0xf0]
push ecx
lea ecx, [esp + 0x70]
call fcn.00409610
mov esi, 0x10
cmp dword [eax + 0x18], esi
mov byte [esp + 0x348], 2
jb 0x512a3b
mov eax, dword [eax + 4]
jmp 0x512a3e
add eax, 4
push eax
push str.BaseLib::CIPConfig::BaseIPv6Config
push 0x6cc
push str..commonipconfig.cpp
push 0xf0000000
call fcn.00409980
mov ecx, eax
call fcn.004fa910
cmp dword [esp + 0x108], esi
jb 0x512a78
mov edx, dword [esp + 0xf4]
push edx
call fcn.00594e98
add esp, 4
lea ecx, [esp + 0xb8]
mov byte [esp + 0x348], 0
call fcn.00409f20
lea eax, [esp + 0xb8]
push eax
mov dword [esp + 0xbc], vtable.std::ios_base.0
call fcn.005cccbe
push edi
call fcn.00594e98
add esp, 8
jmp 0x513249
lea ecx, [esp + 0x24]
push ecx
push ebx
push edi
push 0x86
push 0x17
call esi
cmp eax, edi
jne 0x513240
mov dword [esp + 0x14], ebx
jmp 0x512ad4
mov ebx, dword [esp + 0x14]
lea ecx, [esp + 0x44]
call fcn.00527fa0
mov edx, dword [ebx + 0x24]
push edi
push edx
lea ecx, [esp + 0x4c]
mov byte [esp + 0x350], 3
call fcn.00528160
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 0x512b12
sub ecx, esi
push ecx
push eax
lea ecx, [esp + 0x118]
call fcn.004098b0
lea eax, [esp + 0x110]
push eax
mov byte [esp + 0x34c], 4
call fcn.004fb230
add esp, 4
cmp dword [ebp + 8], 1
jne 0x512b87
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 0x14]
push edx
lea eax, [esp + 0x114]
push eax
call fcn.0050e320
add esp, 8
test eax, eax
je 0x512b87
lea ecx, [esp + 0x110]
call fcn.0040c050
lea ecx, [esp + 0x44]
mov byte [esp + 0x348], 0
call fcn.00527fb0
jmp 0x51322b
mov eax, dword [ebx + 0x34]
cmp eax, 4
lea ecx, [ebx + 0x2c]
lea edx, [esp + 0x12c]
jb 0x512bb4
lea esp, [esp]
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x512bb8
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x512ba0
cmp eax, edi
je 0x512c15
movzx edi, byte [ecx]
movzx esi, byte [edx]
sub esi, edi
jne 0x512c07
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x512c15
movzx edi, byte [ecx]
movzx esi, byte [edx]
sub esi, edi
jne 0x512c07
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x512c15
movzx edi, byte [ecx]
movzx esi, byte [edx]
sub esi, edi
jne 0x512c07
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x512c15
movzx ecx, byte [ecx]
movzx esi, byte [edx]
sub esi, ecx
je 0x512c15
test esi, esi
mov eax, 1
jg 0x512c17
or eax, 0xffffffff
jmp 0x512c17
xor eax, eax
xor edi, edi
cmp eax, edi
jne 0x512c67
cmp dword [esp + 0x128], 0x10
jb 0x512c37
mov edx, dword [esp + 0x114]
push edx
call fcn.00594e98
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.00527fb0
jmp 0x51322b
push 0xf4
call fcn.00594e6d
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, edi
mov byte [esp + 0x348], 5
je 0x512c8d
mov ecx, eax
call fcn.0050e010
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.004080b0
mov ecx, dword [ebx + 0xc]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x512cb5
sub eax, esi
push eax
push ecx
lea ecx, [edi + 0x3c]
call fcn.004098b0
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.005b64d0
mov esi, dword [ebx + 0x10]
add esp, 0xc
test esi, esi
je 0x512e2e
push 0x1ff
lea eax, [esp + 0x139]
push 0
push eax
mov byte [esp + 0x140], 0
call fcn.005b4520
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.005b5c16
add esp, 0xc
test eax, eax
je 0x512e21
push 5
lea eax, [esp + 0x138]
push str.2002:
push eax
call fcn.005b5c16
add esp, 0xc
test eax, eax
je 0x512e21
lea ecx, [esp + 0x134]
push 0x5f4800
push ecx
call fcn.005b14c5
add esp, 8
test eax, eax
je 0x512e21
push 5
lea edx, [esp + 0x138]
push str.2001:
push edx
call fcn.005b5c16
add esp, 0xc
test eax, eax
je 0x512e21
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.0040bee0
movzx ecx, byte [esi + 0x2c]
lea edx, [esp + 0xf0]
mov dword [esp + 0x10c], ecx
push edx
lea ecx, [edi + 0x98]
call fcn.0043bee0
lea ecx, [esp + 0xf0]
mov byte [esp + 0x348], 6
call fcn.00415550
mov esi, dword [esi + 8]
test esi, esi
jne 0x512cf9
jmp 0x512e34
mov ebx, dword [sym.imp.WS2_32.dll_WSAAddressToStringA]
call fcn.004fe500
test eax, eax
je 0x512f4f
mov eax, dword [esp + 0x14]
mov esi, dword [eax + 0xa4]
test esi, esi
je 0x512f4f
push 0x1ff
lea ecx, [esp + 0x139]
push 0
push ecx
mov byte [esp + 0x140], 0
call fcn.005b4520
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.005b5c16
add esp, 0xc
test eax, eax
je 0x512f44
push 5
lea ecx, [esp + 0x138]
push str.2002:
push ecx
call fcn.005b5c16
add esp, 0xc
test eax, eax
je 0x512f44
lea edx, [esp + 0x134]
push 0x5f4800
push edx
call fcn.005b14c5
add esp, 8
test eax, eax
je 0x512f44
push 5
lea eax, [esp + 0x138]
push str.2001:
push eax
call fcn.005b5c16
add esp, 0xc
test eax, eax
je 0x512f44
lea ecx, [esp + 0x134]
push ecx
lea ecx, [esp + 0xf4]
call fcn.0040bf50
lea edx, [esp + 0xf0]
push edx
lea ecx, [edi + 0xb0]
mov byte [esp + 0x34c], 8
call fcn.0043bca0
lea ecx, [esp + 0xf0]
mov byte [esp + 0x348], 6
call fcn.0040c050
mov esi, dword [esi + 8]
test esi, esi
jne 0x512e53
mov eax, dword [esp + 0x14]
mov esi, dword [eax + 0x1c]
test esi, esi
je 0x51305a
push 0x1ff
lea ecx, [esp + 0x139]
push 0
push ecx
mov byte [esp + 0x140], 0
call fcn.005b4520
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.005b5c16
add esp, 0xc
test eax, eax
je 0x51304f
push 5
lea ecx, [esp + 0x138]
push str.2002:
push ecx
call fcn.005b5c16
add esp, 0xc
test eax, eax
je 0x51304f
lea edx, [esp + 0x134]
push 0x5f4800
push edx
call fcn.005b14c5
add esp, 8
test eax, eax
je 0x51304f
push 5
lea eax, [esp + 0x138]
push str.2001:
push eax
call fcn.005b5c16
add esp, 0xc
test eax, eax
je 0x51304f
lea ecx, [esp + 0x134]
push ecx
lea ecx, [esp + 0xf4]
call fcn.0040bf50
lea edx, [esp + 0xf0]
push edx
lea ecx, [edi + 0xc8]
mov byte [esp + 0x34c], 9
call fcn.0043bca0
lea ecx, [esp + 0xf0]
mov byte [esp + 0x348], 6
call fcn.0040c050
mov esi, dword [esi + 8]
test esi, esi
jne 0x512f5e
cmp dword [edi + 0xa0], 0
jne 0x513071
mov eax, dword [esp + 0x20]
cmp dword [eax + 0x10], 0
je 0x513201
lea ecx, [esp + 0x54]
call fcn.00527fa0
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.00528160
push eax
lea ecx, [esp + 0xf4]
call fcn.0040bf50
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.004331d0
test al, al
je 0x51319b
cmp dword [edi + 0x54], 0x10
jb 0x5130ea
mov ebx, dword [edi + 0x40]
jmp 0x5130ed
lea ebx, [edi + 0x40]
lea ecx, [esp + 0x18]
call fcn.0042d0e0
mov eax, dword [eax]
add eax, 0x3c
cmp dword [eax + 0x18], 0x10
jb 0x513106
mov eax, dword [eax + 4]
jmp 0x513109
add eax, 4
push ebx
push eax
call fcn.005b14c5
add esp, 8
test eax, eax
lea ecx, [esp + 0x18]
je 0x513129
push 0
lea edx, [esp + 0x68]
push edx
call fcn.004149c0
jmp 0x5130c2
call fcn.0042d0e0
lea ecx, [edi + 0x98]
push ecx
mov ecx, dword [eax]
add ecx, 0x98
call fcn.0050fb20
lea ecx, [esp + 0x18]
call fcn.0042d0e0
mov ecx, dword [eax]
lea edx, [edi + 0xb0]
push edx
add ecx, 0xb0
call fcn.0047f670
lea ecx, [esp + 0x18]
call fcn.0042d0e0
lea ecx, [edi + 0xc8]
push ecx
mov ecx, dword [eax]
add ecx, 0xc8
call fcn.0047f670
lea ecx, [esp + 0x18]
call fcn.0042d0e0
mov ecx, dword [eax]
push 0xffffffffffffffff
push 0
lea edx, [esp + 0xf8]
add ecx, 0x20
push edx
call fcn.004080b0
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.00433400
test al, al
je 0x5131e4
push 0xffffffffffffffff
push 0
lea edx, [esp + 0xf8]
lea ecx, [edi + 0x20]
push edx
call fcn.004080b0
lea eax, [esp + 0x10]
push eax
mov ecx, esi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x14], edi
call fcn.0050d600
lea ecx, [esp + 0xf0]
call fcn.0040c050
lea ecx, [esp + 0x54]
mov byte [esp + 0x348], 6
call fcn.00527fb0
lea ecx, [esp + 0x28]
call fcn.0050e300
lea ecx, [esp + 0x110]
call fcn.0040c050
lea ecx, [esp + 0x44]
mov byte [esp + 0x348], 0
call fcn.00527fb0
mov ebx, dword [esp + 0x14]
mov ebx, dword [ebx + 8]
xor edi, edi
cmp ebx, edi
mov dword [esp + 0x14], ebx
jne 0x512ad0
mov ebx, dword [esp + 0x2c]
push ebx
call fcn.00594e98
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.005b0968
mov esp, ebp
pop ebp
ret 4