Function at 0x409f90
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov dword [ebp - 0x228], ecx
mov byte [ebp - 0x211], 0
push 0x200
mov eax, dword [ebp - 0x228]
add eax, 0x3c
push eax
call fcn.00403310
add esp, 8
mov ecx, dword [ebp - 0x228]
mov edx, dword [ebp - 0x228]
mov ax, word [edx + 0x34]
mov word [ecx + 0x3c], ax
mov ecx, dword [ebp - 0x228]
mov dl, byte [ebp + 8]
mov byte [ecx + 0x3e], dl
movzx eax, byte [ebp + 8]
cmp eax, 7
jne 0x40a016
push 2
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [ebp - 0x228]
mov word [ecx + 0x3f], ax
push 3
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [ebp - 0x228]
mov word [edx + 0x41], ax
mov byte [ebp - 0x211], 1
jmp 0x40a836
movzx eax, byte [ebp + 8]
cmp eax, 8
jne 0x40a0cf
call fcn.00403b80
push eax
call dword [sym.imp.WS2_32.dll_htonl]
mov ecx, dword [ebp - 0x228]
mov dword [ecx + 0x3f], eax
mov edx, dword [ebp - 0x228]
movzx eax, byte [edx + 0x2041]
add eax, 2
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x228]
add edx, 0x2040
push edx
mov eax, dword [ebp - 0x228]
add eax, 0x43
push eax
call sub.MSVCRT.dll_memmove
add esp, 0xc
mov ecx, dword [ebp - 0x228]
add ecx, dword [ebp - 4]
mov byte [ecx + 0x43], 1
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x228]
movzx ecx, byte [eax + 0x2053]
add ecx, 2
mov dword [ebp - 0x218], ecx
mov edx, dword [ebp - 0x218]
push edx
mov eax, dword [ebp - 0x228]
add eax, 0x2052
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x228]
lea eax, [edx + ecx + 0x43]
push eax
call sub.MSVCRT.dll_memmove
add esp, 0xc
mov byte [ebp - 0x211], 1
jmp 0x40a836
movzx ecx, byte [ebp + 8]
cmp ecx, 0x81
jne 0x40a0e0
jmp 0x40a836
movzx edx, byte [ebp + 8]
cmp edx, 0x84
jne 0x40a0f1
jmp 0x40a836
movzx eax, byte [ebp + 8]
cmp eax, 0x82
jne 0x40a101
jmp 0x40a836
movzx ecx, byte [ebp + 8]
cmp ecx, 0xc
jne 0x40a10f
jmp 0x40a836
movzx edx, byte [ebp + 8]
cmp edx, 1
jne 0x40a175
mov eax, dword [ebp - 0x228]
add eax, 0x207c
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
add ecx, 0x97e
push ecx
call fcn.00402b60
add esp, 4
movzx edx, al
test edx, edx
je 0x40a170
push 0
mov eax, dword [ebp - 0x228]
add eax, 0x3f
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x97e
push ecx
mov edx, dword [ebp - 8]
add edx, 0x17d
push edx
mov ecx, dword [ebp - 0x228]
call fcn.0040b110
mov byte [ebp - 0x211], al
jmp 0x40a836
movzx eax, byte [ebp + 8]
cmp eax, 0xa
jne 0x40a183
jmp 0x40a836
movzx ecx, byte [ebp + 8]
cmp ecx, 4
jne 0x40a1a2
mov edx, dword [ebp - 0x228]
mov byte [edx + 0x3f], 0
mov byte [ebp - 0x211], 1
jmp 0x40a836
movzx eax, byte [ebp + 8]
test eax, eax
jne 0x40a1af
jmp 0x40a836
movzx ecx, byte [ebp + 8]
cmp ecx, 9
je 0x40a1c5
movzx edx, byte [ebp + 8]
cmp edx, 3
jne 0x40a836
xor eax, eax
mov word [ebp - 0xc], ax
mov ecx, dword [ebp - 0x228]
mov edx, dword [ecx + 0x2078]
imul edx, edx, 0xc10
mov eax, dword [ebp - 0x228]
lea ecx, [eax + edx + 0x207c]
mov dword [ebp - 8], ecx
movzx edx, byte [ebp + 8]
cmp edx, 9
jne 0x40a2c6
movzx eax, byte [ebp + 0xc]
cmp eax, 6
jne 0x40a2c1
mov ecx, dword [ebp - 8]
add ecx, 0x97e
push ecx
call fcn.00402b60
add esp, 4
movzx edx, al
test edx, edx
je 0x40a2c1
mov eax, dword [ebp - 0x228]
add eax, 0x4a
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x12c
push ecx
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x40a2c1
mov edx, dword [ebp - 8]
movzx eax, word [edx + 0x176]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [ebp - 0x228]
mov word [ecx + 0x4e], ax
push 0
mov edx, dword [ebp - 0x228]
add edx, 0x50
push edx
mov eax, dword [ebp - 8]
add eax, 0x97e
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x17d
push ecx
mov ecx, dword [ebp - 0x228]
call fcn.0040b110
movzx edx, al
test edx, edx
je 0x40a2c1
push 0x14
mov eax, dword [ebp - 8]
add eax, 0xa0
push eax
mov ecx, dword [ebp - 0x228]
add ecx, 0x10a
push ecx
call sub.MSVCRT.dll_memmove
add esp, 0xc
mov edx, 0xd4
mov word [ebp - 0xc], dx
mov byte [ebp - 0x211], 1
jmp 0x40a80c
movzx ecx, byte [ebp + 0xc]
cmp ecx, 7
jne 0x40a2d4
jmp 0x40a80c
movzx edx, byte [ebp + 0xc]
cmp edx, 8
jne 0x40a2fc
mov eax, dword [ebp - 0x228]
mov byte [eax + 0x4a], 0
mov ecx, 1
mov word [ebp - 0xc], cx
mov byte [ebp - 0x211], 1
jmp 0x40a80c
movzx edx, byte [ebp + 0xc]
cmp edx, 9
jne 0x40a30a
jmp 0x40a80c
movzx eax, byte [ebp + 0xc]
cmp eax, 5
jne 0x40a365
movzx ecx, word [ebp + 0x14]
cmp ecx, 0x14
jl 0x40a360
mov edx, dword [ebp - 0x228]
mov byte [edx + 0x4a], 1
push 0x14
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [ebp - 0x228]
mov word [ecx + 0x4b], ax
push 0x14
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x228]
add eax, 0x4d
push eax
call sub.MSVCRT.dll_memmove
add esp, 0xc
mov ecx, 0x17
mov word [ebp - 0xc], cx
mov byte [ebp - 0x211], 1
jmp 0x40a80c
movzx edx, byte [ebp + 0xc]
cmp edx, 0x21
jne 0x40a3c1
push 0x14
mov eax, dword [ebp - 0x228]
add eax, 0x2064
push eax
call fcn.004022b0
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x40a3bc
push 0x14
mov edx, dword [ebp - 0x228]
add edx, 0x2064
push edx
mov eax, dword [ebp - 0x228]
add eax, 0x4a
push eax
call sub.MSVCRT.dll_memmove
add esp, 0xc
mov ecx, 0x14
mov word [ebp - 0xc], cx
mov byte [ebp - 0x211], 1
jmp 0x40a80c
movzx edx, byte [ebp + 0xc]
cmp edx, 0x22
jne 0x40a610
mov eax, dword [ebp - 0x228]
mov ecx, dword [eax + 0x8a34]
mov edx, dword [ebp - 0x228]
mov eax, dword [edx + 0x8a34]
mov edx, dword [eax + 0x2078]
sub edx, 1
imul edx, edx, 0xc10
lea eax, [ecx + edx + 0x207c]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x228]
mov edx, dword [ecx + 0x8a34]
mov eax, dword [ebp - 0x228]
mov ecx, dword [eax + 0x8a34]
mov eax, dword [ecx + 0x2078]
imul eax, eax, 0xc10
lea ecx, [edx + eax + 0x207c]
mov dword [ebp - 0x224], ecx
mov edx, dword [ebp - 0x228]
mov eax, dword [edx + 0x2078]
sub eax, 1
imul eax, eax, 0xc10
mov ecx, dword [ebp - 0x228]
lea edx, [ecx + eax + 0x25f9]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x224]
add eax, 0x97e
push eax
call fcn.00402b60
add esp, 4
movzx ecx, al
test ecx, ecx
je 0x40a60b
mov edx, dword [ebp - 0x228]
add edx, 0x4a
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.00402920
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x40a60b
mov edx, dword [ebp - 0x228]
mov byte [edx + 0x5e], 3
mov eax, dword [ebp - 0x228]
mov byte [eax + 0x5f], 0
call fcn.00403b80
push eax
call dword [sym.imp.WS2_32.dll_htonl]
mov ecx, dword [ebp - 0x228]
mov dword [ecx + 0x60], eax
mov edx, dword [ebp - 0x228]
add edx, 0x64
push edx
mov eax, dword [ebp - 8]
add eax, 0x12c
push eax
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x40a60b
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + 0x176]
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [ebp - 0x228]
mov word [ecx + 0x68], ax
push 0x14
mov edx, dword [ebp - 8]
add edx, 0xa0
push edx
mov eax, dword [ebp - 0x228]
add eax, 0x6a
push eax
call sub.MSVCRT.dll_memmove
add esp, 0xc
lea ecx, [ebp - 0x220]
push ecx
mov edx, dword [ebp - 8]
add edx, 0x17d
push edx
call fcn.00402340
add esp, 8
movzx eax, al
test eax, eax
je 0x40a60b
movzx ecx, word [ebp - 0x220]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [ebp - 0x228]
mov word [edx + 0x7e], ax
mov eax, dword [ebp - 0x220]
push eax
mov ecx, dword [ebp - 0x21c]
push ecx
mov edx, dword [ebp - 0x228]
add edx, 0x80
push edx
call sub.MSVCRT.dll_memmove
add esp, 0xc
push 0x14
mov eax, dword [ebp - 0x228]
mov ecx, dword [eax + 0x8a34]
add ecx, 0x2064
push ecx
mov edx, dword [ebp - 0x220]
mov eax, dword [ebp - 0x228]
lea ecx, [eax + edx + 0x80]
push ecx
call sub.MSVCRT.dll_memmove
add esp, 0xc
mov edx, dword [ebp - 0x220]
add edx, 0x36
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x228]
add ecx, 0x5e
push ecx
mov edx, dword [ebp - 0x224]
add edx, 0x97e
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x228]
call fcn.0040b110
movzx ecx, al
test ecx, ecx
je 0x40a5fc
mov edx, dword [ebp - 4]
add edx, 0xce
mov word [ebp - 0xc], dx
mov byte [ebp - 0x211], 1
lea eax, [ebp - 0x220]
push eax
call fcn.00403410
add esp, 4
jmp 0x40a80c
movzx ecx, byte [ebp + 0xc]
cmp ecx, 0x28
jne 0x40a61e
jmp 0x40a80c
movzx edx, byte [ebp + 0xc]
cmp edx, 1
jne 0x40a71a
mov eax, dword [ebp - 0x228]
cmp dword [eax + 0x38], 0x10
jne 0x40a6a8
lea ecx, [ebp - 0x210]
push ecx
mov edx, dword [ebp - 0x228]
add edx, 0x494c
push edx
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x40a664
mov dword [ebp - 0x22c], str.__s_:_s
jmp 0x40a66e
mov dword [ebp - 0x22c], str._s:_s
mov eax, dword [ebp - 0x228]
add eax, 0x5358
push eax
mov ecx, dword [ebp - 0x228]
add ecx, 0x494c
push ecx
mov edx, dword [ebp - 0x22c]
push edx
push 0x1ed
mov eax, dword [ebp - 0x228]
add eax, 0x4a
push eax
call dword [0x419fec]
add esp, 0x14
jmp 0x40a6d2
mov ecx, dword [ebp - 0x228]
add ecx, 0x5358
push ecx
push 0x4158e4
push 0x1ed
mov edx, dword [ebp - 0x228]
add edx, 0x4a
push edx
call dword [0x419fec]
add esp, 0x10
mov eax, dword [ebp - 0x228]
mov byte [eax + 0x237], 0
mov ecx, dword [ebp - 0x228]
add ecx, 0x4a
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov word [ebp - 0xc], ax
movzx edx, word [ebp - 0xc]
mov eax, dword [ebp - 0x228]
mov byte [eax + edx + 0x4a], 0
mov cx, word [ebp - 0xc]
add cx, 1
mov word [ebp - 0xc], cx
mov byte [ebp - 0x211], 1
jmp 0x40a80c
movzx edx, byte [ebp + 0xc]
cmp edx, 0xd
jne 0x40a735
xor eax, eax
mov word [ebp - 0xc], ax
mov byte [ebp - 0x211], 1
jmp 0x40a80c
movzx ecx, byte [ebp + 0xc]
cmp ecx, 1
jne 0x40a779
movzx edx, word [ebp + 0x14]
cmp edx, 0x1f2
jg 0x40a774
mov ax, word [ebp + 0x14]
mov word [ebp - 0xc], ax
movzx ecx, word [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x228]
add eax, 0x4a
push eax
call sub.MSVCRT.dll_memmove
add esp, 0xc
mov byte [ebp - 0x211], 1
jmp 0x40a80c
movzx ecx, byte [ebp + 0xc]
cmp ecx, 2
jne 0x40a7ba
movzx edx, word [ebp + 0x14]
cmp edx, 0x1f2
jg 0x40a7b8
mov ax, word [ebp + 0x14]
mov word [ebp - 0xc], ax
movzx ecx, word [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x228]
add eax, 0x4a
push eax
call sub.MSVCRT.dll_memmove
add esp, 0xc
mov byte [ebp - 0x211], 1
jmp 0x40a80c
movzx ecx, byte [ebp + 0xc]
cmp ecx, 3
jne 0x40a7f6
mov edx, dword [ebp - 0x228]
mov eax, dword [ebp - 0x228]
mov cx, word [eax + 0x8a38]
mov word [edx + 0x42], cx
mov edx, dword [ebp - 0x228]
mov byte [edx + 0x4a], 1
mov eax, 1
mov word [ebp - 0xc], ax
mov byte [ebp - 0x211], 1
jmp 0x40a80c
movzx ecx, byte [ebp + 0xc]
cmp ecx, 0xa
jne 0x40a80c
xor edx, edx
mov word [ebp - 0xc], dx
mov byte [ebp - 0x211], 1
movzx eax, byte [ebp - 0x211]
test eax, eax
je 0x40a836
mov ecx, dword [ebp + 0x18]
push ecx
movzx edx, word [ebp - 0xc]
push edx
movzx eax, byte [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x228]
call fcn.00409e80
mov byte [ebp - 0x211], al
mov al, byte [ebp - 0x211]
mov esp, ebp
pop ebp
ret 0x14