Function at 0x59e6b0
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x78efc4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x130], esi
test edi, edi
je 0x59eabe
cmp byte [edi], 0
je 0x59eabe
xor ebx, ebx
mov ecx, edi
mov eax, 0x6df528
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x59e710
test dl, dl
je 0x59e70c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x59e710
add eax, 2
add ecx, 2
test dl, dl
jne 0x59e6f0
xor eax, eax
jmp 0x59e715
sbb eax, eax
or eax, 1
test eax, eax
je 0x59ea3f
cmp byte [esi], 0x5b
jne 0x59e77d
push 0x5d
push esi
call fcn.00679380
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x59eabe
inc esi
sub ebx, esi
mov dword [ebp - 0x13c], ebx
cmp ebx, 0x80
jae 0x59eabe
push ebx
lea eax, [ebp - 0xa4]
push esi
push eax
call fcn.00679930
lea eax, [ebp - 0xa4]
mov byte [ebp + ebx - 0xa4], 0
add esp, 0xc
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x134], 2
jmp 0x59e7b1
lea eax, [ebp - 0x13c]
push eax
push esi
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
mov ecx, 1
cmp eax, ecx
cmove ebx, ecx
mov dword [ebp - 0x134], ebx
mov ebx, esi
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x59e7a2
sub ebx, ecx
mov dword [ebp - 0x13c], ebx
mov al, byte [edi]
test al, al
je 0x59eabe
nop dword [eax + eax]
xor esi, esi
cmp al, 0x20
je 0x59e7cc
mov cl, al
cmp al, 9
jne 0x59e7d6
mov al, byte [edi + 1]
inc edi
mov cl, al
test al, al
jne 0x59e7c2
mov edx, edi
mov dword [ebp - 0x128], edx
test cl, cl
je 0x59eaa1
cmp cl, 0x20
je 0x59e7fe
cmp cl, 9
je 0x59e7fe
cmp cl, 0x2c
je 0x59e7fe
mov cl, byte [edi + 1]
inc edi
inc esi
test cl, cl
jne 0x59e7e6
test esi, esi
je 0x59eaa1
mov eax, dword [ebp - 0x134]
sub eax, 0
je 0x59ea63
sub eax, 1
je 0x59e823
sub eax, 1
jne 0x59eaa1
push 0x2f
push edx
call fcn.00679380
mov ebx, eax
add esp, 8
xor eax, eax
mov dword [ebp - 0x12c], eax
test ebx, ebx
je 0x59e8a1
mov ecx, dword [ebp - 0x128]
add ecx, esi
cmp ebx, ecx
jae 0x59e8a1
lea ecx, [ebx + 1]
push ecx
call fcn.00694311
add esp, 4
mov dword [ebp - 0x12c], eax
cmp esi, 0x80
jae 0x59eaa1
push esi
mov esi, dword [ebp - 0x128]
lea eax, [ebp - 0x124]
push esi
push eax
call fcn.00679930
sub ebx, esi
add esp, 0xc
cmp ebx, 0x80
jae 0x59ead1
mov eax, dword [ebp - 0x12c]
mov byte [ebp + ebx - 0x124], 0
lea ebx, [ebp - 0x124]
jmp 0x59e8a7
mov ebx, dword [ebp - 0x128]
cmp dword [ebp - 0x134], 2
jne 0x59e9b2
test eax, eax
mov ecx, 0x80
cmove eax, ecx
mov esi, eax
and eax, 7
mov dword [ebp - 0x12c], eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x130]
shr esi, 3
push 0x17
mov dword [ebp - 0x128], esi
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x59eaa1
lea eax, [ebp - 0x14]
push eax
push ebx
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x59eaa1
cmp esi, 0x10
ja 0x59eaa1
mov ebx, dword [ebp - 0x12c]
jne 0x59e91e
test ebx, ebx
jne 0x59eaa1
jmp 0x59e922
test esi, esi
je 0x59e989
lea ecx, [ebp - 0x24]
lea edx, [ebp - 0x14]
sub esi, 4
jb 0x59e941
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x59e946
add ecx, 4
add edx, 4
sub esi, 4
jae 0x59e930
cmp esi, 0xfffffffc
je 0x59e983
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x59eaa1
cmp esi, 0xfffffffd
je 0x59e983
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x59eaa1
cmp esi, 0xfffffffe
je 0x59e983
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x59eaa1
cmp esi, 0xffffffff
je 0x59e983
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x59eaa1
mov esi, dword [ebp - 0x128]
test ebx, ebx
je 0x59ea3f
movzx eax, byte [ebp + esi - 0x24]
mov ecx, 8
movzx edx, byte [ebp + esi - 0x14]
sub ecx, ebx
xor edx, eax
mov eax, 0xff
shl eax, cl
test eax, edx
jmp 0x59ea9f
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x138], 0
cmp eax, 0x20
ja 0x59eaa1
mov esi, dword [sym.imp.WS2_32.dll_inet_pton]
lea eax, [ebp - 0x128]
push eax
push dword [ebp - 0x130]
push 2
call esi
cmp eax, 1
jne 0x59eaa1
lea eax, [ebp - 0x138]
push eax
push ebx
push 2
call esi
cmp eax, 1
jne 0x59eaa1
mov ebx, dword [ebp - 0x12c]
test ebx, ebx
je 0x59ea52
cmp ebx, 0x20
je 0x59ea52
push dword [ebp - 0x128]
call dword [sym.imp.WS2_32.dll_htonl]
push dword [ebp - 0x138]
mov esi, eax
call dword [sym.imp.WS2_32.dll_htonl]
mov ecx, 0x20
or edx, 0xffffffff
sub ecx, ebx
xor eax, esi
shl edx, cl
test edx, eax
jne 0x59eaa1
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006773ff
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x128]
cmp eax, dword [ebp - 0x138]
sete al
jmp 0x59ea9d
cmp byte [edx], 0x2e
jne 0x59ea7f
dec esi
cmp esi, ebx
ja 0x59ea9b
mov eax, dword [ebp - 0x130]
sub eax, esi
push ebx
add eax, ebx
push eax
lea eax, [edx + 1]
push eax
jmp 0x59ea8b
cmp esi, ebx
jne 0x59ea9b
push ebx
push dword [ebp - 0x130]
push edx
call fcn.005884a0
add esp, 0xc
test eax, eax
je 0x59ea9b
mov al, 1
jmp 0x59ea9d
xor al, al
test al, al
jne 0x59ea3f
mov al, byte [edi]
cmp al, 0x2c
jne 0x59eaaf
mov al, byte [edi + 1]
inc edi
cmp al, 0x2c
je 0x59eaa7
test al, al
je 0x59eabe
mov ebx, dword [ebp - 0x13c]
jmp 0x59e7c0
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006773ff
mov esp, ebp
pop ebp
ret
call fcn.00677d69
int3