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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5d17c5
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x65d4e4]
xor eax, esp
mov dword [esp + 0xe0], eax
push ebx
push esi
push edi
mov eax, dword [0x65d4e4]
xor eax, esp
push eax
lea eax, [esp + 0xf8]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x20], ebx
call fcn.0041aef0
mov esi, dword [eax + 0x7c]
xor eax, eax
cmp esi, eax
je 0x514a4f
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 0x514935
mov edx, dword [esp + 0x24]
push edx
lea ecx, [esp + 0x38]
call fcn.0043eb10
mov edi, eax
test edi, edi
mov dword [esp + 0x34], edi
je 0x514354
mov eax, dword [esp + 0x38]
push eax
push 0
push edi
call fcn.005b5540
add esp, 0xc
test edi, edi
mov dword [esp + 0x100], 0
jne 0x51442e
push 1
push 2
lea ecx, [esp + 0x4c]
call fcn.0040b040
lea ecx, [esp + 0x44]
push 0x5f4658
push ecx
mov byte [esp + 0x108], 1
call fcn.00409b60
add esp, 8
lea edx, [esp + 0xcc]
push edx
lea ecx, [esp + 0x48]
call fcn.004094f0
mov esi, 0x10
cmp dword [eax + 0x18], esi
mov byte [esp + 0x100], 2
jb 0x5143b6
mov eax, dword [eax + 4]
jmp 0x5143b9
add eax, 4
push eax
push str.BaseLib::CIPConfig::BaseIPHlpConfig
push 0x7e4
push str..commonipconfig.cpp
push 0xf0000000
call fcn.00409860
mov ecx, eax
call fcn.004fb930
cmp dword [esp + 0xe4], esi
jb 0x5143f3
mov eax, dword [esp + 0xd0]
push eax
call fcn.00595eb8
add esp, 4
lea ecx, [esp + 0x90]
mov byte [esp + 0x100], 0
call fcn.00409e00
lea ecx, [esp + 0x90]
push ecx
mov dword [esp + 0x94], vtable.std::ios_base.0
call fcn.005cdcde
push 0
call fcn.00595eb8
add esp, 8
jmp 0x514a4f
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 0x5144a4
push 1
push 2
lea ecx, [esp + 0x4c]
call fcn.0040b040
push esi
lea ecx, [esp + 0x48]
push str.lpGetAdaptersInfo:_ret
push ecx
mov byte [esp + 0x10c], 6
call fcn.00409b60
add esp, 8
mov ecx, eax
call fcn.004024e0
lea edx, [esp + 0xcc]
push edx
lea ecx, [esp + 0x48]
call fcn.004094f0
cmp dword [eax + 0x18], 0x10
mov byte [esp + 0x100], 7
jb 0x5148bc
mov eax, dword [eax + 4]
jmp 0x5148bf
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 0x5144d0
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x5144d0
sub eax, edx
push eax
lea eax, [edi + 0x10c]
push eax
lea ecx, [esp + 0xd4]
call fcn.00409790
lea ecx, [esp + 0xcc]
push ecx
mov byte [esp + 0x104], 3
call fcn.004fc250
add esp, 4
cmp dword [ebp + 8], 1
jne 0x514544
mov edx, dword [ebx + 0x14]
push edx
lea eax, [esp + 0xd0]
push eax
call fcn.0050f350
add esp, 8
test eax, eax
je 0x514544
mov ecx, dword [edi]
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0xcc]
mov byte [esp + 0x100], 0
call fcn.0040bf30
jmp 0x514607
mov eax, dword [edi + 0x190]
cmp eax, 4
lea ecx, [edi + 0x194]
lea edx, [esp + 0xe8]
jb 0x514574
lea esp, [esp]
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x514578
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x514560
test eax, eax
je 0x5145d5
movzx esi, byte [edx]
movzx ebx, byte [ecx]
sub esi, ebx
jne 0x5145c7
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x5145d5
movzx esi, byte [edx]
movzx ebx, byte [ecx]
sub esi, ebx
jne 0x5145c7
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x5145d5
movzx esi, byte [edx]
movzx ebx, byte [ecx]
sub esi, ebx
jne 0x5145c7
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x5145d5
movzx esi, byte [edx]
movzx edx, byte [ecx]
sub esi, edx
je 0x5145d5
test esi, esi
mov eax, 1
jg 0x5145d7
or eax, 0xffffffff
jmp 0x5145d7
xor eax, eax
test eax, eax
jne 0x514617
cmp dword [esp + 0xe4], 0x10
mov eax, dword [edi]
mov dword [esp + 0x14], eax
mov byte [esp + 0x100], 0
jb 0x514603
mov ecx, dword [esp + 0xd0]
push ecx
call fcn.00595eb8
add esp, 4
mov ebx, dword [esp + 0x20]
cmp dword [esp + 0x14], 0
jne 0x5144a0
jmp 0x51491b
push 0xf4
call fcn.00595e8d
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x100], 4
je 0x51463f
mov ecx, eax
call fcn.0050f040
mov esi, eax
jmp 0x514641
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 0x5146bc
jmp 0x514664
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 0x5146ae
cmp ebx, 0xffffffff
je 0x5146ae
cmp dword [ebp + 0xc], 0
je 0x51469e
cmp dword [edi + 0x1a4], 0
je 0x51469e
push 0x5f5854
call dword [sym.imp.WS2_32.dll_inet_addr]
movzx edx, bx
cmp edx, eax
je 0x5146ae
lea eax, [esp + 0x1c]
push eax
lea ecx, [esi + 0xa4]
call fcn.0048f160
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
test eax, eax
mov dword [esp + 0x18], eax
jne 0x514660
lea eax, [edi + 0x1ac]
test eax, eax
mov dword [esp + 0x18], eax
je 0x5147b1
jmp 0x5146d4
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 0x51479f
cmp ebx, 0xffffffff
je 0x51479f
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 0x514766
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.00413390
mov edx, dword [eax]
and edx, edi
and edi, ebx
cmp edx, edi
jne 0x51475f
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.0050e5d0
jmp 0x51479b
lea ecx, [esp + 0x2c]
push ecx
jmp 0x514790
cmp dword [ebp + 0xc], 0
je 0x51478b
mov edx, dword [esp + 0x14]
cmp dword [edx + 0x1a4], 0
je 0x51478b
push 0x5f5854
call dword [sym.imp.WS2_32.dll_inet_addr]
movzx ecx, bx
cmp ecx, eax
je 0x51479b
lea edx, [esp + 0x2c]
push edx
lea ecx, [esi + 0x8c]
call fcn.0043ce70
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
test eax, eax
mov dword [esp + 0x18], eax
jne 0x5146d0
mov ecx, dword [edi + 0x19c]
push esi
push ecx
mov ecx, dword [esp + 0x28]
call fcn.0050e670
lea eax, [edi + 0x1fc]
test eax, eax
je 0x5147eb
lea ebx, [eax + 4]
push ebx
call dword [sym.imp.WS2_32.dll_inet_addr]
test eax, eax
je 0x5147eb
cmp eax, 0xffffffff
je 0x5147eb
push ebx
lea ecx, [esi + 0xd4]
call fcn.0040bdc0
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 0x51480a
test eax, eax
je 0x514894
mov edx, dword [edi + 0x1a0]
lea eax, [edi + 0x10c]
push eax
lea ecx, [esi + 4]
mov dword [esi + 0xf0], edx
call fcn.0040bdc0
mov eax, dword [edi + 0x1a4]
lea ecx, [edi + 8]
push ecx
lea ecx, [esi + 0x3c]
mov dword [esi + 0x74], eax
call fcn.0040bdc0
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.005b74f0
lea eax, [esi + 0x80]
xor ecx, ecx
push eax
mov dword [eax], ecx
push esi
mov dword [eax + 4], ecx
call fcn.0050ddc0
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.0050e630
mov eax, dword [edi]
lea ecx, [esp + 0x28]
mov dword [esp + 0x14], eax
call fcn.0050f330
lea ecx, [esp + 0xcc]
mov byte [esp + 0x100], 0
call fcn.0040bf30
jmp 0x514607
add eax, 4
push eax
push str.BaseLib::CIPConfig::BaseIPHlpConfig
push 0x85b
push str..commonipconfig.cpp
push 0xf0000000
call fcn.00409860
mov ecx, eax
call fcn.004fb930
lea ecx, [esp + 0xcc]
call fcn.0040bf30
lea ecx, [esp + 0x90]
mov byte [esp + 0x100], 0
call fcn.00409e00
lea eax, [esp + 0x90]
push eax
mov dword [esp + 0x94], vtable.std::ios_base.0
call fcn.005cdcde
add esp, 4
mov ecx, dword [esp + 0x34]
push ecx
mov dword [esp + 0x104], 0xffffffff
call fcn.00595eb8
jmp 0x514a41
cmp edi, 0xe8
je 0x514a44
push 1
push 2
lea ecx, [esp + 0x4c]
call fcn.0040b040
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.00409b60
add esp, 8
mov ecx, eax
call fcn.004024e0
push eax
call fcn.00409b60
add esp, 8
mov ecx, eax
call fcn.004024e0
lea eax, [esp + 0xcc]
push eax
lea ecx, [esp + 0x48]
call fcn.004094f0
mov esi, 0x10
cmp dword [eax + 0x18], esi
mov byte [esp + 0x100], 9
jb 0x5149b7
mov eax, dword [eax + 4]
jmp 0x5149ba
add eax, 4
push eax
push str.BaseLib::CIPConfig::BaseIPHlpConfig
push 0x862
push str..commonipconfig.cpp
push 0xf0000000
call fcn.00409860
mov ecx, eax
call fcn.004fb930
cmp dword [esp + 0xe4], esi
jb 0x5149f4
mov ecx, dword [esp + 0xd0]
push ecx
call fcn.00595eb8
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.00409e00
lea edx, [esp + 0x90]
push edx
mov dword [esp + 0x94], vtable.std::ios_base.0
call fcn.005cdcde
add esp, 4
mov eax, dword [ebp + 8]
push eax
mov ecx, ebx
call fcn.00513950
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.005b1988
mov esp, ebp
pop ebp
ret 8