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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5d07a5
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x65b4e4]
xor eax, esp
mov dword [esp + 0xe0], eax
push ebx
push esi
push edi
mov eax, dword [0x65b4e4]
xor eax, esp
push eax
lea eax, [esp + 0xf8]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x20], ebx
call fcn.0041a460
mov esi, dword [eax + 0x7c]
xor eax, eax
cmp esi, eax
je 0x513a1f
lea ecx, [esp + 0x24]
push ecx
push eax
mov dword [esp + 0x2c], eax
mov byte [esp + 0xf0], al
mov dword [esp + 0xf1], eax
mov word [esp + 0xf5], ax
mov byte [esp + 0xf7], al
call esi
mov edi, eax
cmp edi, 0x6f
jne 0x513905
mov edx, dword [esp + 0x24]
push edx
lea ecx, [esp + 0x38]
call fcn.0043daa0
mov edi, eax
test edi, edi
mov dword [esp + 0x34], edi
je 0x513324
mov eax, dword [esp + 0x38]
push eax
push 0
push edi
call fcn.005b4520
add esp, 0xc
test edi, edi
mov dword [esp + 0x100], 0
jne 0x5133fe
push 1
push 2
lea ecx, [esp + 0x4c]
call fcn.0040b160
lea ecx, [esp + 0x44]
push 0x5f3658
push ecx
mov byte [esp + 0x108], 1
call fcn.00409c80
add esp, 8
lea edx, [esp + 0xcc]
push edx
lea ecx, [esp + 0x48]
call fcn.00409610
mov esi, 0x10
cmp dword [eax + 0x18], esi
mov byte [esp + 0x100], 2
jb 0x513386
mov eax, dword [eax + 4]
jmp 0x513389
add eax, 4
push eax
push str.BaseLib::CIPConfig::BaseIPHlpConfig
push 0x7e4
push str..commonipconfig.cpp
push 0xf0000000
call fcn.00409980
mov ecx, eax
call fcn.004fa910
cmp dword [esp + 0xe4], esi
jb 0x5133c3
mov eax, dword [esp + 0xd0]
push eax
call fcn.00594e98
add esp, 4
lea ecx, [esp + 0x90]
mov byte [esp + 0x100], 0
call fcn.00409f20
lea ecx, [esp + 0x90]
push ecx
mov dword [esp + 0x94], vtable.std::ios_base.0
call fcn.005cccbe
push 0
call fcn.00594e98
add esp, 8
jmp 0x513a1f
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x24]
push edx
push eax
mov dword [esp + 0x1c], edi
call esi
mov esi, eax
test esi, esi
je 0x513474
push 1
push 2
lea ecx, [esp + 0x4c]
call fcn.0040b160
push esi
lea ecx, [esp + 0x48]
push str.lpGetAdaptersInfo:_ret
push ecx
mov byte [esp + 0x10c], 6
call fcn.00409c80
add esp, 8
mov ecx, eax
call fcn.004024e0
lea edx, [esp + 0xcc]
push edx
lea ecx, [esp + 0x48]
call fcn.00409610
cmp dword [eax + 0x18], 0x10
mov byte [esp + 0x100], 7
jb 0x51388c
mov eax, dword [eax + 4]
jmp 0x51388f
mov edi, dword [esp + 0x14]
lea eax, [edi + 0x10c]
mov dword [esp + 0xe4], 0xf
mov dword [esp + 0xe0], 0
mov byte [esp + 0xd0], 0
lea edx, [eax + 1]
jmp 0x5134a0
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x5134a0
sub eax, edx
push eax
lea eax, [edi + 0x10c]
push eax
lea ecx, [esp + 0xd4]
call fcn.004098b0
lea ecx, [esp + 0xcc]
push ecx
mov byte [esp + 0x104], 3
call fcn.004fb230
add esp, 4
cmp dword [ebp + 8], 1
jne 0x513514
mov edx, dword [ebx + 0x14]
push edx
lea eax, [esp + 0xd0]
push eax
call fcn.0050e320
add esp, 8
test eax, eax
je 0x513514
mov ecx, dword [edi]
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0xcc]
mov byte [esp + 0x100], 0
call fcn.0040c050
jmp 0x5135d7
mov eax, dword [edi + 0x190]
cmp eax, 4
lea ecx, [edi + 0x194]
lea edx, [esp + 0xe8]
jb 0x513544
lea esp, [esp]
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x513548
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x513530
test eax, eax
je 0x5135a5
movzx esi, byte [edx]
movzx ebx, byte [ecx]
sub esi, ebx
jne 0x513597
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x5135a5
movzx esi, byte [edx]
movzx ebx, byte [ecx]
sub esi, ebx
jne 0x513597
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x5135a5
movzx esi, byte [edx]
movzx ebx, byte [ecx]
sub esi, ebx
jne 0x513597
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x5135a5
movzx esi, byte [edx]
movzx edx, byte [ecx]
sub esi, edx
je 0x5135a5
test esi, esi
mov eax, 1
jg 0x5135a7
or eax, 0xffffffff
jmp 0x5135a7
xor eax, eax
test eax, eax
jne 0x5135e7
cmp dword [esp + 0xe4], 0x10
mov eax, dword [edi]
mov dword [esp + 0x14], eax
mov byte [esp + 0x100], 0
jb 0x5135d3
mov ecx, dword [esp + 0xd0]
push ecx
call fcn.00594e98
add esp, 4
mov ebx, dword [esp + 0x20]
cmp dword [esp + 0x14], 0
jne 0x513470
jmp 0x5138eb
push 0xf4
call fcn.00594e6d
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x100], 4
je 0x51360f
mov ecx, eax
call fcn.0050e010
mov esi, eax
jmp 0x513611
xor esi, esi
mov dword [esp + 0x28], esi
lea eax, [edi + 0x1d4]
test eax, eax
mov byte [esp + 0x100], 5
mov dword [esp + 0x18], eax
je 0x51368c
jmp 0x513634
mov eax, dword [esp + 0x18]
add eax, 4
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x1c], ebx
je 0x51367e
cmp ebx, 0xffffffff
je 0x51367e
cmp dword [ebp + 0xc], 0
je 0x51366e
cmp dword [edi + 0x1a4], 0
je 0x51366e
push 0x5f4854
call dword [sym.imp.WS2_32.dll_inet_addr]
movzx edx, bx
cmp edx, eax
je 0x51367e
lea eax, [esp + 0x1c]
push eax
lea ecx, [esi + 0xa4]
call fcn.00454dc0
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
test eax, eax
mov dword [esp + 0x18], eax
jne 0x513630
lea eax, [edi + 0x1ac]
test eax, eax
mov dword [esp + 0x18], eax
je 0x513781
jmp 0x5136a4
mov eax, dword [esp + 0x18]
add eax, 4
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ebx, eax
test ebx, ebx
je 0x51376f
cmp ebx, 0xffffffff
je 0x51376f
mov edx, dword [esp + 0x18]
add edx, 0x14
push edx
mov dword [esp + 0x30], ebx
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp dword [esi + 0xac], 0
mov edi, eax
mov dword [esp + 0x30], edi
je 0x513736
mov ecx, dword [esi + 0xa8]
mov ecx, dword [ecx]
lea eax, [esi + 0xa4]
mov dword [esp + 0x40], ecx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x3c], eax
call fcn.0042d0e0
mov edx, dword [eax]
and edx, edi
and edi, ebx
cmp edx, edi
jne 0x51372f
mov eax, dword [esi + 0x90]
mov eax, dword [eax]
lea ecx, [esi + 0x8c]
lea edx, [esp + 0x2c]
push edx
push eax
push ecx
lea eax, [esp + 0xd0]
push eax
call fcn.0050d5a0
jmp 0x51376b
lea ecx, [esp + 0x2c]
push ecx
jmp 0x513760
cmp dword [ebp + 0xc], 0
je 0x51375b
mov edx, dword [esp + 0x14]
cmp dword [edx + 0x1a4], 0
je 0x51375b
push 0x5f4854
call dword [sym.imp.WS2_32.dll_inet_addr]
movzx ecx, bx
cmp ecx, eax
je 0x51376b
lea edx, [esp + 0x2c]
push edx
lea ecx, [esi + 0x8c]
call fcn.0043bdc0
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
test eax, eax
mov dword [esp + 0x18], eax
jne 0x5136a0
mov ecx, dword [edi + 0x19c]
push esi
push ecx
mov ecx, dword [esp + 0x28]
call fcn.0050d640
lea eax, [edi + 0x1fc]
test eax, eax
je 0x5137bb
lea ebx, [eax + 4]
push ebx
call dword [sym.imp.WS2_32.dll_inet_addr]
test eax, eax
je 0x5137bb
cmp eax, 0xffffffff
je 0x5137bb
push ebx
lea ecx, [esi + 0xd4]
call fcn.0040bee0
mov ebx, dword [esp + 0x20]
xor eax, eax
cmp dword [esi + 0x94], eax
setne al
mov dword [esi], eax
cmp dword [ebx + 0x10], 0
jne 0x5137da
test eax, eax
je 0x513864
mov edx, dword [edi + 0x1a0]
lea eax, [edi + 0x10c]
push eax
lea ecx, [esi + 4]
mov dword [esi + 0xf0], edx
call fcn.0040bee0
mov eax, dword [edi + 0x1a4]
lea ecx, [edi + 8]
push ecx
lea ecx, [esi + 0x3c]
mov dword [esi + 0x74], eax
call fcn.0040bee0
mov edx, dword [edi + 0x190]
xor ecx, ecx
lea eax, [esi + 0x78]
mov dword [esi + 0x88], edx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov ecx, dword [edi + 0x190]
push ecx
lea ecx, [edi + 0x194]
push ecx
push eax
call fcn.005b64d0
lea eax, [esi + 0x80]
xor ecx, ecx
push eax
mov dword [eax], ecx
push esi
mov dword [eax + 4], ecx
call fcn.0050cdd0
add esp, 0x14
lea edx, [esp + 0x1c]
push edx
lea ecx, [ebx + 4]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x20], esi
call fcn.0050d600
mov eax, dword [edi]
lea ecx, [esp + 0x28]
mov dword [esp + 0x14], eax
call fcn.0050e300
lea ecx, [esp + 0xcc]
mov byte [esp + 0x100], 0
call fcn.0040c050
jmp 0x5135d7
add eax, 4
push eax
push str.BaseLib::CIPConfig::BaseIPHlpConfig
push 0x85b
push str..commonipconfig.cpp
push 0xf0000000
call fcn.00409980
mov ecx, eax
call fcn.004fa910
lea ecx, [esp + 0xcc]
call fcn.0040c050
lea ecx, [esp + 0x90]
mov byte [esp + 0x100], 0
call fcn.00409f20
lea eax, [esp + 0x90]
push eax
mov dword [esp + 0x94], vtable.std::ios_base.0
call fcn.005cccbe
add esp, 4
mov ecx, dword [esp + 0x34]
push ecx
mov dword [esp + 0x104], 0xffffffff
call fcn.00594e98
jmp 0x513a11
cmp edi, 0xe8
je 0x513a14
push 1
push 2
lea ecx, [esp + 0x4c]
call fcn.0040b160
push edi
push str._ret
mov dword [esp + 0x108], 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x50]
push str.lpGetAdaptersInfo:
push edx
call fcn.00409c80
add esp, 8
mov ecx, eax
call fcn.004024e0
push eax
call fcn.00409c80
add esp, 8
mov ecx, eax
call fcn.004024e0
lea eax, [esp + 0xcc]
push eax
lea ecx, [esp + 0x48]
call fcn.00409610
mov esi, 0x10
cmp dword [eax + 0x18], esi
mov byte [esp + 0x100], 9
jb 0x513987
mov eax, dword [eax + 4]
jmp 0x51398a
add eax, 4
push eax
push str.BaseLib::CIPConfig::BaseIPHlpConfig
push 0x862
push str..commonipconfig.cpp
push 0xf0000000
call fcn.00409980
mov ecx, eax
call fcn.004fa910
cmp dword [esp + 0xe4], esi
jb 0x5139c4
mov ecx, dword [esp + 0xd0]
push ecx
call fcn.00594e98
add esp, 4
lea ecx, [esp + 0x90]
mov dword [esp + 0xe4], 0xf
mov dword [esp + 0xe0], 0
mov byte [esp + 0xd0], 0
mov dword [esp + 0x100], 0xffffffff
call fcn.00409f20
lea edx, [esp + 0x90]
push edx
mov dword [esp + 0x94], vtable.std::ios_base.0
call fcn.005cccbe
add esp, 4
mov eax, dword [ebp + 8]
push eax
mov ecx, ebx
call fcn.00512920
mov ecx, dword [esp + 0xf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xe0]
xor ecx, esp
call fcn.005b0968
mov esp, ebp
pop ebp
ret 8