Function at 0x412680
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x44e054]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x2c], eax
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x4126a7
sub edi, ecx
test byte [esi + 0x158], 0x20
mov dword [ebp - 0x20], edi
je 0x412870
lea ebx, [esi + 0xf8]
mov dword [ebp - 0x1c], 0
xor eax, eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], eax
mov esi, ebx
test ebx, ebx
je 0x4128b3
nop
movzx eax, byte [esi]
and eax, 0x1f
sub eax, 2
je 0x412708
sub eax, 4
je 0x4126ff
sub eax, 1
jne 0x41271e
mov ecx, 1
mov dword [ebp - 0x1c], ecx
jmp 0x412721
mov dword [ebp - 0x24], 1
jmp 0x41271e
push edi
push edx
push esi
call fcn.00411bf0
add esp, 0xc
test eax, eax
je 0x4128b9
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x4126e0
test ecx, ecx
je 0x4127f4
push 0x3a
push edx
call fcn.00428810
add esp, 8
test eax, eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x18]
jne 0x41275d
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
lea edi, [eax - 1]
neg edi
sbb edi, edi
and edi, 0xfffffffc
add edi, 4
jmp 0x412772
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
lea edi, [eax - 1]
neg edi
sbb edi, edi
and edi, 0xfffffff0
add edi, 0x10
test edi, edi
je 0x4127f1
mov al, byte [ebx]
and al, 0x1f
cmp al, 7
jne 0x4127e7
cmp dword [ebx + 4], edi
jne 0x4127e7
mov ecx, dword [ebx + 8]
lea edx, [ebp - 0x14]
mov esi, edi
sub esi, 4
jb 0x4127a1
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4127aa
add ecx, 4
add edx, 4
sub esi, 4
jae 0x412790
cmp esi, 0xfffffffc
je 0x4128b9
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x4127e7
cmp esi, 0xfffffffd
je 0x4128b9
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x4127e7
cmp esi, 0xfffffffe
je 0x4128b9
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x4127e7
cmp esi, 0xffffffff
je 0x4128b9
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x4128b9
mov ebx, dword [ebx + 0xc]
test ebx, ebx
jne 0x412776
mov ebx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x20]
cmp dword [ebp - 0x24], 0
je 0x4128b3
nop
mov al, byte [ebx]
and al, 0x1f
cmp al, 6
jne 0x412867
cmp dword [ebx + 4], edi
jne 0x412867
mov ecx, dword [ebx + 8]
mov esi, edi
mov edx, dword [ebp - 0x18]
sub esi, 4
jb 0x412831
nop word [eax + eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x41283a
add ecx, 4
add edx, 4
sub esi, 4
jae 0x412820
cmp esi, 0xfffffffc
je 0x4128b9
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x412867
cmp esi, 0xfffffffd
je 0x4128b9
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x412867
cmp esi, 0xfffffffe
je 0x4128b9
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x412867
cmp esi, 0xffffffff
je 0x4128b9
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x4128b9
mov ebx, dword [ebx + 0xc]
test ebx, ebx
jne 0x412800
jmp 0x4128b3
add esi, 0x70
je 0x4128b3
mov ecx, 0x455
mov ebx, 3
nop
cmp dword [esi + 4], ebx
jne 0x4128ac
mov eax, dword [esi + 8]
cmp cx, word [eax]
jne 0x4128ac
cmp bl, byte [eax + 2]
jne 0x4128ac
push edi
push edx
lea eax, [esi + 0xc]
push eax
call fcn.00411bf0
add esp, 0xc
test eax, eax
je 0x4128b9
mov edx, dword [ebp - 0x18]
mov ecx, 0x455
mov esi, dword [esi + 0x18]
test esi, esi
jne 0x412880
mov eax, dword [ebp - 0x2c]
or dword [eax], 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00427b91
mov esp, ebp
pop ebp
ret