Function at 0x41bdb0
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x45f91c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
test eax, eax
jne 0x41be10
sub esp, 0x10
lea eax, [ebp - 0x20]
xorps xmm0, xmm0
mov dword [ebp - 0xc], eax
mov eax, esp
movq qword [ebp - 0x20], xmm0
movlpd qword [ebp - 0x14], xmm0
movups xmm0, xmmword [ebp - 0x14]
push str.unable_to_allocate_memory_for_netaddr
push str.pvpgn::netaddr_create_str
push 0x10
movups xmmword [eax], xmm0
call fcn.00415770
add esp, 0x1c
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004217ea
mov esp, ebp
pop ebp
ret
push 0x19b
push 0x44d388
push eax
call fcn.00418820
mov esi, eax
push 0x44d4f4
push esi
call fcn.0042d353
add esp, 0x14
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x41be5d
push 0x19e
push 0x44d388
push esi
call fcn.00418690
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004217ea
mov esp, ebp
pop ebp
ret
push 0x44d4f4
push 0
call fcn.0042d353
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x41be79
push 0x1a3
jmp 0x41be3c
push 0x1a7
push 0x44d388
push 8
call fcn.00418700
mov edi, eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x24]
call fcn.0041bbe0
add esp, 0x14
test eax, eax
jne 0x41bee6
push str.could_not_lookup_net
push str.pvpgn::netaddr_create_str
push 0x10
call fcn.00401070
push 0x1ad
push 0x44d388
push edi
call fcn.00418690
push 0x1ae
push 0x44d388
push esi
call fcn.00418690
add esp, 0x24
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004217ea
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x1c]
mov dword [edi], eax
lea eax, [ebp - 0x18]
push eax
push ebx
call fcn.0041e680
add esp, 8
test eax, eax
jns 0x41bf63
lea eax, [ebp - 0x10]
push eax
push ebx
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x41bf1c
push dword [ebp - 0x10]
call dword [sym.imp.WS2_32.dll_ntohl]
jmp 0x41bff0
push str.could_not_convert_mask
push str.pvpgn::netaddr_create_str
push 0x10
call fcn.00401070
push 0x1bc
push 0x44d388
push edi
call fcn.00418690
push 0x1bd
push 0x44d388
push esi
call fcn.00418690
add esp, 0x24
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004217ea
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x18]
cmp eax, 0x20
jbe 0x41bfdb
mov dword [ebp - 0x20], eax
sub esp, 0x10
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0xc], eax
mov eax, esp
push str.network_bits_must_be_less_than_or_equal_to_32___
mov dword [ebp - 0x14], 3
mov dword [ebp - 0x10], 0
movups xmm0, xmmword [ebp - 0x14]
push str.pvpgn::netaddr_create_str
push 0x10
movups xmmword [eax], xmm0
call fcn.00415770
push 0x1c6
push 0x44d388
push edi
call fcn.00418690
push 0x1c7
push 0x44d388
push esi
call fcn.00418690
add esp, 0x34
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004217ea
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x41bff3
mov ecx, 0x20
sub ecx, eax
mov eax, 1
shl eax, cl
dec eax
not eax
mov dword [ebp - 0x18], eax
push 0x1d0
push 0x44d388
push esi
mov dword [edi + 4], eax
call fcn.00418690
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, edi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004217ea
mov esp, ebp
pop ebp
ret