Function at 0x456c70
Capabilities:
Convert ip address from string

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
push esi
push edi
xor ebp, ebp
xor esi, esi
push ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], esi
call fcn.004578c0
mov ecx, dword [esp + 0x28]
add esp, 4
test ecx, ecx
je 0x456f96
cmp dword [ecx + eax*4], esi
lea edi, [ecx + eax*4]
je 0x456f96
push ecx
call fcn.00457a60
add esp, 4
lea eax, [esp + 0x24]
push eax
push ebx
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
mov edi, dword [edi]
test eax, eax
setne al
mov byte [esp + 0x24], al
test edi, edi
je 0x457012
cmp byte [edi + 0x2d], 0
je 0x456ce3
cmp byte [esp + 0x30], 0
je 0x456e14
mov ecx, dword [edi + 0x14]
test ecx, ecx
je 0x456d6f
cmp byte [edi + 0x2c], 0
je 0x456d5b
test al, al
jne 0x456d4d
mov esi, ecx
lea edx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x456d00
sub esi, edx
lea edx, [ebx + 1]
nop dword [eax]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x456d10
sub ebx, edx
cmp ebx, esi
jb 0x456d41
mov ebp, ebx
sub ebp, esi
add ebp, dword [esp + 0x28]
push ebp
push ecx
call fcn.00466300
add esp, 8
test eax, eax
je 0x456d3d
cmp ebx, esi
je 0x456d6f
cmp byte [ebp - 1], 0x2e
je 0x456d6f
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x28]
mov esi, dword [esp + 0x10]
mov al, byte [esp + 0x24]
cmp byte [edi + 0x2c], 0
je 0x456d5b
test al, al
je 0x456e14
push dword [edi + 0x14]
push ebx
call fcn.00466300
add esp, 8
test eax, eax
je 0x456e10
mov eax, dword [edi + 0x10]
mov dword [esp + 0x18], eax
test eax, eax
je 0x456e4d
mov ebx, eax
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x456d83
sub ebx, ecx
cmp ebx, 1
je 0x456e4d
push dword [esp + 0x2c]
call dword [0x612770]
mov esi, eax
add esp, 4
test esi, esi
je 0x456e08
push 0x3f
push esi
call sub.VCRUNTIME140.dll_strchr
add esp, 8
test eax, eax
je 0x456dba
mov byte [eax], 0
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x456dc0
sub ecx, edx
je 0x456dd0
cmp byte [esi], 0x2f
je 0x456deb
push esi
call dword [0x612768]
push 0x4b032c
call dword [0x612770]
mov esi, eax
add esp, 8
test esi, esi
je 0x456e08
mov ebp, esi
lea ecx, [ebp + 1]
mov al, byte [ebp]
inc ebp
test al, al
jne 0x456df0
sub ebp, ecx
cmp ebp, ebx
jae 0x456e27
push esi
call dword [0x612768]
add esp, 4
mov esi, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
mov al, byte [esp + 0x24]
mov edi, dword [edi]
test edi, edi
je 0x456fa0
mov ebx, dword [esp + 0x28]
jmp 0x456cd2
push ebx
push esi
push dword [esp + 0x20]
call sub.api_ms_win_crt_string_l1_1_0.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x456dfe
cmp ebx, ebp
je 0x456e43
cmp byte [ebx + esi], 0x2f
jne 0x456dfe
push esi
call dword [0x612768]
add esp, 4
push 1
push 0x38
call dword [0x612774]
mov esi, eax
add esp, 8
test esi, esi
je 0x456f89
mov eax, dword [edi + 0x20]
test eax, eax
je 0x456e80
push eax
call dword [0x612770]
add esp, 4
mov dword [esi + 0x20], eax
test eax, eax
je 0x456f80
mov eax, dword [edi + 0x14]
test eax, eax
je 0x456e9c
push eax
call dword [0x612770]
add esp, 4
mov dword [esi + 0x14], eax
test eax, eax
je 0x456f80
mov eax, dword [edi + 0xc]
test eax, eax
je 0x456eb8
push eax
call dword [0x612770]
add esp, 4
mov dword [esi + 0xc], eax
test eax, eax
je 0x456f80
mov eax, dword [edi + 0x10]
test eax, eax
je 0x456ed4
push eax
call dword [0x612770]
add esp, 4
mov dword [esi + 0x10], eax
test eax, eax
je 0x456f80
mov eax, dword [edi + 4]
test eax, eax
je 0x456ef0
push eax
call dword [0x612770]
add esp, 4
mov dword [esi + 4], eax
test eax, eax
je 0x456f80
mov eax, dword [edi + 8]
test eax, eax
je 0x456f08
push eax
call dword [0x612770]
add esp, 4
mov dword [esi + 8], eax
test eax, eax
je 0x456f80
mov eax, dword [edi + 0x28]
test eax, eax
je 0x456f20
push eax
call dword [0x612770]
add esp, 4
mov dword [esi + 0x28], eax
test eax, eax
je 0x456f80
mov eax, dword [edi + 0x24]
test eax, eax
je 0x456f38
push eax
call dword [0x612770]
add esp, 4
mov dword [esi + 0x24], eax
test eax, eax
je 0x456f80
mov eax, dword [edi + 0x18]
mov ebp, esi
mov ecx, dword [edi + 0x1c]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
movzx eax, byte [edi + 0x2c]
mov byte [esi + 0x2c], al
movzx eax, byte [edi + 0x2d]
mov byte [esi + 0x2d], al
movzx eax, byte [edi + 0x2e]
mov byte [esi + 0x2e], al
movzx eax, byte [edi + 0x2f]
mov byte [esi + 0x2f], al
mov eax, dword [edi + 0x30]
mov dword [esi + 0x30], eax
mov eax, dword [esp + 0x14]
mov dword [esi], eax
mov esi, dword [esp + 0x10]
inc esi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], esi
jmp 0x456e10
push esi
call fcn.00457960
add esp, 4
mov eax, dword [esp + 0x14]
push eax
call fcn.00456c00
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
test esi, esi
je 0x457012
lea ebx, [esi*4]
push ebx
call dword [0x612764]
mov esi, eax
add esp, 4
test esi, esi
je 0x456f89
test ebp, ebp
je 0x456fcd
mov ecx, esi
mov dword [ecx], ebp
lea ecx, [ecx + 4]
mov ebp, dword [ebp]
test ebp, ebp
jne 0x456fc1
mov edi, dword [esp + 0x10]
push 0x4577c0
push 4
push edi
push esi
call sub.api_ms_win_crt_utility_l1_1_0.dll_qsort
mov ebp, dword [esi]
add esp, 0x10
xor edx, edx
add edi, 0xffffffff
je 0x456ffe
nop dword [eax + eax]
mov ecx, dword [esi + edx*4]
mov eax, dword [esi + edx*4 + 4]
inc edx
mov dword [ecx], eax
cmp edx, edi
jb 0x456ff0
mov eax, dword [ebx + esi - 4]
push esi
mov dword [eax], 0
call dword [0x612768]
add esp, 4
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x10
ret